React Native library to interact with Status Keycard using NFC connection https://keycard.status.im
Go to file
Dmitry Novotochinov 8f5534a899
add usage docs
2019-05-02 21:05:41 +03:00
android update to sdk v2.2.1 2019-05-02 18:39:44 +03:00
docs add usage docs 2019-05-02 21:05:41 +03:00
.gitattributes initial commit 2018-11-22 19:49:00 +03:00
.gitignore initial commit 2018-11-22 19:49:00 +03:00
LICENSE Rename LICENSE.md to LICENSE 2018-12-22 21:15:52 +03:00
README.md add usage docs 2019-05-02 21:05:41 +03:00
index.js initial commit 2018-11-22 19:49:00 +03:00
package.json update sdk to 2.2.1 2019-05-02 18:42:19 +03:00

README.md

React Native Status Keycard npm version

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

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNStatusKeycardPackage; to the imports at the top of the file
  • Add new RNStatusKeycardPackage() to the list returned by the getPackages() method
  1. 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')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-status-keycard')
    

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/