Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaxLength in OTP input Box #196

Open
TRIPTI-JAIN opened this issue Sep 26, 2022 · 0 comments
Open

MaxLength in OTP input Box #196

TRIPTI-JAIN opened this issue Sep 26, 2022 · 0 comments

Comments

@TRIPTI-JAIN
Copy link

sometime i am able to type 2 digit in 1 OTP box.
The solution for this problem is for the path : @twotalltotems/react-native-otp-input/dist/index.js , we can add one more attribute in TextInput in renderOneInputField function.
Just add maxLength={1} in the TextInput and it will start working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant