react-native-securam-otc

0.1.0 • Public • Published

react-native-securam-otc

Getting started

$ npm install react-native-securam-otc --save

Mostly automatic installation

$ react-native link react-native-securam-otc

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-securam-otc and add RNSecuramOtc.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNSecuramOtc.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

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

Usage

import RNSecuramOtc from 'react-native-securam-otc';

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

Readme

Keywords

Package Sidebar

Install

npm i react-native-securam-otc

Weekly Downloads

0

Version

0.1.0

License

none

Unpacked Size

280 kB

Total Files

22

Last publish

Collaborators

  • patrickyang