Socket
Socket
Sign inDemoInstall

react-native-status-keycard

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-status-keycard

React Native library to interact with Status Keycard using NFC connection (Android only)


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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/[...]/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 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')
    
  3. Add <uses-permission android:name="android.permission.NFC"/> to android/app/src/main/AndroidManifest.xml to enable NFC permission.

  4. Make sure minSdkVersion is 18 in android/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/

FAQs

Last updated on 27 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc