Closed vaibsshukla closed 4 years ago
This works for me:
<OTPInputView
pinCount={6}
onCodeChanged={(code) => {
if (code.length === 6) {
this._handleVerificationCode(code)
}
}}
onCodeFilled={this._handleVerificationCode}
/>
Thanks @rrust for providing the walk around. This issue should had been fixed in PR https://github.com/Twotalltotems/react-native-otp-input/pull/58.
Copied OTP codefrom message could not able to setState(code)
To Reproduce Steps To produce:
Expected behavior On Send button I need OTP copied OTP on the state.
Smartphone (please complete the following information): Android Devices
Code: