React Native library to interact with Status Keycard using NFC connection
https://keycard.status.im
3369498c9f | ||
---|---|---|
android | ||
docs | ||
ios | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
README.md | ||
index.js | ||
package.json | ||
react-native-status-keycard.podspec |
README.md
React Native Status Keycard
React Native library to interact with Keycard using Java SDK
Getting started
$ npm install react-native-status-keycard --save
Mostly automatic installation
$ react-native link react-native-status-keycard
Manual installation
Android is the only platform supported by now.
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import im.status.ethereum.keycard.RNStatusKeycardPackage;
to the imports at the top of the file - Add
new RNStatusKeycardPackage()
to the list returned by thegetPackages()
method
-
Append the following lines to
android/settings.gradle
:include ':react-native-status-keycard' project(':react-native-status-keycard').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-status-keycard/android')
-
Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-status-keycard')
-
Add
<uses-permission android:name="android.permission.NFC"/>
toandroid/app/src/main/AndroidManifest.xml
to enable NFC permission. -
Make sure
minSdkVersion
is 18 inandroid/build.gradle
.
Usage
Take a look into docs
For more usage examples, please refer to https://github.com/status-im/status-react (assuming you can read Clojure)
For Keycard API documention, please look into https://status.im/keycard_api/