react-native
yarn add react-native-pin-entry
or
npm install --save react-native-pin-entry
import PinInput from 'react-native-pin-entry'
render() {
return (
<PinInput onInputChange={(pin) => console.log(pin)} />
}
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 | ✓ | |
Author: sandeepsinghsohal
Source Code: https://github.com/sandeepsinghsohal/pin-entry
#react-native #react #mobile-apps