react-native-pin-entry
v1.2.0
Published
Pin Entry Component
Downloads
7
Maintainers
Readme
Pin Entry Component for React Native
Features
- Custom styles
- Custom size
- Auto Focus
- Light-weight: No other dependencies besides
react-native
Installation
yarn add react-native-pin-entry
or
npm install --save react-native-pin-entry
Usage
import PinInput from 'react-native-pin-entry'
render() {
return (
<PinInput onInputChange={(pin) => console.log(pin)} />
}
Props
You can pass custom style to PinInput
| onInputChange | Returns the complete PIN | Function | ✓ | | | placeholder | Placeholder to show in the pin fields | String | ✓ | | | digits | Number to pin options max 6 | Number | ✓ | |