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

ios paste code the UI abnormal #302

Open
xjdqq opened this issue Sep 8, 2022 · 3 comments
Open

ios paste code the UI abnormal #302

xjdqq opened this issue Sep 8, 2022 · 3 comments

Comments

@xjdqq
Copy link

xjdqq commented Sep 8, 2022

image

@xjdqq
Copy link
Author

xjdqq commented Sep 8, 2022

image
You can do it this way

  • if (Platform.OS === 'ios' && index === 0 && text.length > 1) {
    inputs.current[index].current.setNativeProps({
    value: text[0],
    text: text[0],
    });
    }

@demna-miqava
Copy link

Hello, I have kind of similar issue: on autofill it tries to paste first two digits inside first square. Have you find any solution?

@xjdqq
Copy link
Author

xjdqq commented Oct 9, 2022

Hello, I have kind of similar issue: on autofill it tries to paste first two digits inside first square. Have you find any solution?

You can add the above code to the source code and patch it. Here's how I solved it

xjdqq referenced this issue in xjdqq/react-native-otp-inputs Oct 9, 2022
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

2 participants