r5n-labs / react-native-otp-inputs

OTP inputs for React-Native
MIT License
249 stars 91 forks source link

For those who are having issue regarding on autofill here's a solution #272

Closed ginxx009 closed 3 years ago

ginxx009 commented 3 years ago

when you use <OTPInputs />

Don't use this autofillFromClipboard={true}

just do it like this

<OtpInputs
                    handleChange={(code) => setCode(code)}
                    numberOfInputs={6} 
                    selectTextOnFocus={true}
                    borderWidth={2}
                    padding={5}
                    textAlign="center"
/>

and that will solve your issue