v1.0.2
yarn add react-native-digits-input
or with npm
npm install react-native-digits-input --save
import DigitsInput from 'react-native-digits-input';
<DigitsInput numberOfDigits={6} onCodeChange={(text) => console.log(text)} />
Name | Type | Default |
---|---|---|
numberOfDigits | number |
4 |
onCodeChange | * function (value)=>void |
none |
disabled | boolean |
false |
numberContainerStyle | View Style |
none |
containerStyle | View Style |
none |