react-native-nfc-daa
v1.0.5
Published
## Getting started
Downloads
5
Readme
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
- 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 thegetPackages()
method
- 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')
- 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;