r5n-labs/react-native-otp-inputs

Set value

Closed this issue · 8 comments

im not able to set detected OTP because of handlechange...

@mayankpandav Which version and what your code looks like?

I'm using latest version there is no field like value to put value instead we have handlechange which are handling onchange and value

@mayankpandav There is no possibility, for now. I will include this in v4 :)

@dsznajder Thank you for your time

+1 for this feature. I need to clear any inputted OTP if Resend button is clicked, but it's currently impossible.

@augustosamame it will work if they put value of input, on resend we can clear state what we have putted as a value.. just need to add value, if you are in hurry then you can do fork and put some changes....

@augustosamame There is reset method on OtpInputs instance. I've added defaultValue in current version.

@dsznajder thank you....