react-native-proapps-2fa
v0.1.1
Published
## Getting started
Downloads
1
Readme
react-native-proapps-2fa
Getting started
$ npm install react-native-proapps-2fa --save
Mostly automatic installation
$ react-native link react-native-proapps-2fa
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-proapps-2fa
and addRNProApps2fa.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNProApps2fa.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNProApps2faPackage;
to the imports at the top of the file - Add
new RNProApps2faPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-proapps-2fa' project(':react-native-proapps-2fa').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-proapps-2fa/android')
- Insert the following lines inside the
dependencies
block inandroid/app/build.gradle
:compile project(':react-native-proapps-2fa')
Configure your project
Android
- Insert the following lines in
android/build.gradle
:allprojects { repositories { flatDir { dirs project(':react-native-proapps-2fa').file('libs') // this line } } }
Usage
import RNProApps2fa from 'react-native-proapps-2fa';