react-native-i-text-input
v1.0.1
Published
RNITextInput allows you to use ios12 OTP auto fill feature. Now, if you get a one-time password (OTP) via a text message, iOS 12 will display an auto-fill prompt, which will help you quickly paste it in the app
Downloads
8
Maintainers
Readme
react-native-i-text-input
RNITextInput allows you to use ios12 OTP auto fill feature in React-native as well as in Vue-native. Now, if you get a one-time password (OTP) via a text message, iOS 12 will display an auto-fill prompt, which will help you quickly paste it in the app.
NOTE: Security code is only work with System keyboard. So avoid using custom keyboard.
Getting started
$ npm install react-native-i-text-input --save
Mostly automatic installation
$ react-native link react-native-i-text-input
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-i-text-input
and addRNITextInput.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNITextInput.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import RNITextInput from 'react-native-i-text-input';
class App extends Component {
render() {
return (
<View ... >
// others views
<RNITextInput/>
</View>
)
}
}