{"repo":"naveenvignesh5/react-native-otp-textinput","free":true,"listed":false,"github":"https://github.com/naveenvignesh5/react-native-otp-textinput","clone":"git clone https://github.com/naveenvignesh5/react-native-otp-textinput.git","description":"Text View usable for OTP / Pin implementation","language":"TypeScript","stars":185,"topics":["react-native","otp-view","textinput","textinputfield","react","typescript"],"license":"MIT","category":"mobile-apps","readme_excerpt":"REACT NATIVE OTP TEXT INPUT React Native Component that can used for OTPs and Pins as secure pin input. Installation Demo How to Use Check the Example react native app for usage. Platform Support Supports both Android and iOS. Props The following props are applicable for the component along with props supported by react native TextInput component Prop Type Optional Default Description -------------------- ------ -------- ------------ -------------------------------------------------------------------------------------- defaultValue string Yes '' Default Value that can be set based on OTP / Pin received from parent container. handleTextChange func No n/a callback with concated string of all cells as argument. handleCellTextChange func Yes n/a callback for text change in individual cell with cell text and cell index as arguments inputCount number Yes 4 Number of Text Input Cells to be present. tintColor string Yes #3CB371 Color for Cell Border on being focused. offTintColor string Yes #DCDCDC Color for Cell Border Border not focused. inputCellLength number Yes 1 Number of character that can be entered inside a single cell. containerStyle object Yes {} style for overall container. textInputStyle object Yes {} style for text input. testIDPrefix string Yes 'otp input ' testID prefix, the result will be otp input 0 until inputCount autoFocus bool Yes false Input should automatically get focus when the components loads onBlur func Yes n/a Callback that is called when the text input ","default_branch":null,"files":null,"tree":[],"storefront":"/r/naveenvignesh5","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/naveenvignesh5/react-native-otp-textinput/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}