React Native Pincode Input
React Native Pincode Input is a iOS Lock Screen style pincode input.
Installation
$ npm install react-native-pincode-input
$ yarn add react-native-pincode-input
Usage
; Component pincodeInput = React; { thispincodeInput; } { const previousPin = thisprops; this; if pin !== previousPin this; } { const pin = thisstate; return <PincodeInput ref= thispincodeInput = pincodeInput length=4 containerStyle= display: "flex" width: "100%" height: 200 justifyContent: "center" circleContainerStyle= paddingHorizontal: 32 circleEmptyStyle= borderWidth: 1 borderColor: "#424242" circleFilledStyle= backgroundColor: "#424242" pin=pin onTextChange=thishandleOnTextChange /> }
Features
- Pincode Input shake animation.
- Supports Accessibility.
License
React Native Pincode Input is available under the MIT license. See LICENSE for details.