tttstudios / react-native-otp-input

Tiny Javascript library which provides an elegant UI for user to input one time passcode.
MIT License
521 stars 238 forks source link

All OTP filled at once while having multiple OTP inputs #216

Open dprajapati1179 opened 1 year ago

dprajapati1179 commented 1 year ago

Describe the bug

Hello,

I have two different OTP Inputs on the same screen and while copying any code from the message it is filled into both of the OTP Input. So let me know how to stop if anyone knows.

To Reproduce

  1. Create a screen having two or more OTP Inputs.
  2. Make a call for OTP sent to the phone before moving to the OTP screen.
  3. Copy the code according to your digits and move to the screen back or copy from the notification.
  4. All OTP inputs will be filled with the same copied code.

Expected behavior There should be a way to auto-fill individual OTP input. It should be filled in only for one for which the code is there.

Smartphone (please complete the following information):