react-native-digits-input
v1.0.2
Published
A digits input field which can be used for otp inputs in separate boxes.
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-inputor with npm
npm install react-native-digits-input --saveUsage
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 |
