r5n-labs / react-native-otp-inputs

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

One time code autofilling weird behaviour #253

Closed yudiz-vipul closed 3 years ago

yudiz-vipul commented 3 years ago

I am getting weird behavior filling code using the autofill option, I don't want auto-filling features to avoid the weird issues. Please check the attachment.

RPReplay_Final1611745035

Also, you can check my code snippet here: <OtpInputs ref={otpInputsRef} selectionColor={Platform.OS === 'ios' && AppColors.app490074} inputContainerStyles={styles.otpInput} inputStyles={styles.otpInputText} numberOfInputs={6} autofillFromClipboard={false} returnKeyType={'done'} handleChange={(code) => {setOTPVerificationCode(code)}} />

ice-chillios commented 3 years ago

@yudiz-vipul please check on the production code, as it may be caused by many things in development. It also looks like you have some code that is not optimized.