r5n-dev/react-native-otp-inputs

ios paste code the UI abnormal

Opened this issue · 3 comments

xjdqq commented

image

xjdqq commented

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],
    });
    }

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 commented

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