1.0.5 • Published 2 years ago

react-native-nfc-daa v1.0.5

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

react-native-nfc-daa

Getting started

$ npm install react-native-nfc-daa --save

Mostly automatic installation

$ react-native link react-native-nfc-daa

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNNfcDaaPackage; to the imports at the top of the file
  • Add new RNNfcDaaPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-nfc-daa'
    project(':react-native-nfc-daa').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-nfc-daa/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-nfc-daa')

Usage

import RNNfcDaa from 'react-native-nfc-daa';

// TODO: What to do with the module?
RNNfcDaa;