trunghv-react-native-input-otp-custom
v0.0.6
Published
## Getting started
Downloads
4
Maintainers
Readme
react-native-input-otp-custom
Getting started
$ npm install react-native-input-otp-custom --save
Mostly automatic installation
$ react-native link react-native-input-otp-custom
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-input-otp-custom
and addInputOtpCustom.xcodeproj
- In XCode, in the project navigator, select your project. Add
libInputOtpCustom.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainApplication.java
- Add
import com.reactlibrary.InputOtpCustomPackage;
to the imports at the top of the file - Add
new InputOtpCustomPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-input-otp-custom' project(':react-native-input-otp-custom').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-input-otp-custom/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-input-otp-custom')
Usage
import InputOtpCustom from 'react-native-input-otp-custom';
// TODO: What to do with the module?
InputOtpCustom;