1.0.0 • Published 7 years ago
react-native-react-native-code-verification v1.0.0
react-native-react-native-code-verification
This module presents you view with digit display and numkeypad for convinient entering
Getting started
$ npm install react-native-react-native-code-verification --save
Mostly automatic installation
$ react-native link react-native-react-native-code-verification
Manual installation
Screenshots
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-react-native-code-verificationand addRNReactNativeCodeVerification.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNReactNativeCodeVerification.ato 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.RNReactNativeCodeVerificationPackage;to the imports at the top of the file - Add
new RNReactNativeCodeVerificationPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-react-native-code-verification' project(':react-native-react-native-code-verification').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-react-native-code-verification/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-react-native-code-verification')
Usage
import RNReactNativeCodeVerification from 'react-native-react-native-code-verification';
// TODO: What to do with the module?
RNReactNativeCodeVerification;Credentials
1.0.0
7 years ago