Closed sonianigam closed 4 years ago
Can someone pls help with this? facing the same issue on iOS
in my case I had to use Keyboard.dismiss()
In my case I have to dismiss the keyboard on phone number input page then wait for 1 second before going to otp page
Keyboard.dismiss(); setTimeout(() => { navigation.navigate('nextPage'); }, 1000);
Describe the bug I am implementing a standard phone authentication flow. First I render a
TextInput
component to collect the phone number, and then I render anOTPInputView
to collect the code. The standardTextInput
autofocuses, but theOTPInputView
does not. I haveautoFocusOnLoad
in myOTPInputView
. I have also tried manually setting a ref and callingfocusField(0)
.Code
To Reproduce Steps to reproduce the behavior:
TextInput
OTPInputView
appears but does not autofocusExpected behavior I expected the OTPInputView to autofocus.
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
iPhone X
iOS 13.5.1
otp-input Version 1.3.11