react-native-digits-input
v1.0.2
Published
A digits input field which can be used for otp inputs in separate boxes.
Downloads
33
Maintainers
Readme
Demo Image
Installation
Latest version
v1.0.2
if you have react-native-vector-icons installed in your project
yarn add react-native-digits-input
or with npm
npm install react-native-digits-input --save
Usage
import Component
import DigitsInput from 'react-native-digits-input';
Basic Usage
<DigitsInput numberOfDigits={6} onCodeChange={(text) => console.log(text)} />
Props
| Name | Type | Default |
| ------------------------ | -------------------------- | :-----: |
| numberOfDigits | number
| 4 |
| onCodeChange | * function (value)=>void
| none |
| disabled | boolean
| false |
| numberContainerStyle | View Style
| none |
| containerStyle | View Style
| none |