tttstudios / react-native-otp-input

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

Focus on particular input field #104

Open Sandeep200995 opened 3 years ago

Sandeep200995 commented 3 years ago

Hello

how can I point to the particular input field on manual wrong entering OTP I also have to show the red lined borders on wrong input so I can not re-render it otherwise autoFocusOnLoad prop can resolve this issue

Please help Screenshot 2020-10-08 at 1 57 09 PM

edwardigates commented 3 years ago

@Sandeep200995 did you find how you can change the border color on when the input is wrong?

eric-dao37 commented 3 years ago

@Sandeep200995 You can use codeInputHighlightStyle and codeInputFieldStyle to change background a slot

vokecodes commented 3 years ago

@ericdao-ttt How can a user point to a particular input field?

https://github.com/tttstudios/react-native-otp-input/issues/115