Module for reading NFC id using React Native
Java JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Module for reading NFC id using React Native (android only)

Try code in example/

Run app and touch your phone with any NFC card - it should display card ID.

To install this plugin you need:

Copy plugin using: git clone

Do following steps (AFAIK it is usual for native plugins, except for ones installed with rnpm):

Open up android/app/src/main/java/[...]/

Add import ru.enlight.nfcreactnativesimple.NfcReactNativeSimplePackage; to the imports at the top of the file

Add new new NfcReactNativeSimplePackage() to the list returned by the getPackages() method

Append the following lines to android/settings.gradle:

include ':nfc-react-native-simple' project(':nfc-react-native-simple').projectDir = new File(rootProject.projectDir, '../node_modules/nfc-react-native-simple/android')

Insert the following lines inside the dependencies block in android/app/build.gradle:

compile project(':nfc-react-native-simple')

For your project you need AndroidManifest.xml from example/ folder. Place it to the


Other (small) AndroidManifest.xml is for plugin itself (you don't need to move it anythere)

Place nfc_tech_filter.xml from example/ folder to


Place from example/ folder to the folder of your application (as usual)

Run react-native run-android to build it all (including java code)

Also check out another NFC react-native module: I spent a lot of time trying to get it work, but no way (may be now it does).

License: MIT