![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
nfc-react-native
Advanced tools
nfc-react-native is a react-native module for android to write/read Mifare Classic (NFC) tags.
$ npm install nfc-react-native --save
$ react-native link nfc-react-native
android/app/src/main/java/[...]/MainActivity.java
import es.tiarg.nfcreactnative.NfcReactNativePackage;
to the imports at the top of the filenew NfcReactNativePackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':nfc-react-native'
project(':nfc-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/nfc-react-native/android')
android/app/build.gradle
:
compile project(':nfc-react-native')
import {readTag, writeTag} from 'nfc-react-native'
...
componentWillMount() {
//content sector block key
writeTag('12341234123412341234123412341234', 1, 0, 'FFFFFFFFFFFF').then((r) => {
console.log('from promise')
console.log(r)
//sector block key })
readTag(1, 0, 'FFFFFFFFFFFF').then((r) => {
console.log('from promise')
console.log(r)
})
}
...
In your manifest add:
<uses-permission android:name="android.permission.NFC" />
....
Your main activity should look like
...
<activity
android:name=".MainActivity"
android:launchMode="singleTask"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED"/>
</intent-filter>
<meta-data android:name="android.nfc.action.TECH_DISCOVERED"
android:resource="@xml/nfc_tech_filter" />
</activity>
Add a xml file in res folder with the following:
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<tech-list>
<tech>android.nfc.tech.MifareClassic</tech>
</tech-list>
</resources>
Contributions are welcome :raised_hands:
This repository is distributed under MIT license
FAQs
NFC Wrapper
We found that nfc-react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.