r5n-dev / react-native-otp-inputs

OTP inputs for React-Native
MIT License
246 stars 92 forks source link

Auto filling otp in ios not work proper #268

Open BhalodiyaHappyDV opened 3 years ago

BhalodiyaHappyDV commented 3 years ago

Hello, I am stuck on iOS OTP code auto-filling.

I have set 6 as numberOfInputs and when I got OTP code SMS from keyboard accessory view. While Tapping on it, the entire OTP code of 6 letters got filled to the first index of TextInput out of 6. The rest of TextInputs remains empty.

Sunfocus commented 3 years ago

Hi @BhalodiyaHappyDV

Did you got any solution of this issue?

I am also facing similar issue. For my side I have 4 digits input field. And when I tapping on the keyboard OTP view. First it fills the entire 4 digits OTP in first field, and then 1st, 3rd, 4th input box filled with correct value, but second box remain empty. See attached image.

Screenshot 2021-08-31 at 11 21 31 AM

I am using this version

"react-native": "0.63.3"
"react-native-otp-inputs": "^5.0.1"
Sunfocus commented 3 years ago

Also tested it on latest version 7.0.3 of this package, but issue still same.

DeepakSharma04 commented 2 years ago

autofill not worked in Ios 15.4 and 14.1 in simulator but on real device it's work.