Open chinmayeedevi opened 2 years ago
componentDidMount() {
setTimeout(() => {
this.otpInput.focusField(0)
}, 500);
}
<OTPInputView
ref={input => this.otpInput = input}
pinCount={4}
autoFocusOnLoad={false}
onCodeFilled={((code) => {
console.log(code)
})}
/>
Thanks @sharmadevs
Not Working for me
this is actually covered in one of the closed tickets...you need to call Keyboard.dismiss()
before showing the otp screen.
If i set OTPInputView to autofocus then keyboard not opening but when i set it to false it is working, but I need to on autofocus. what should I do Please if any one have solution for that please help me. thanks in advance