react-native-otp-inputs icon indicating copy to clipboard operation
react-native-otp-inputs copied to clipboard

ios paste code the UI abnormal

Open xjdqq opened this issue 3 years ago • 3 comments

image

xjdqq avatar Sep 08 '22 07:09 xjdqq

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

xjdqq avatar Sep 08 '22 07:09 xjdqq

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

demna-miqava avatar Sep 23 '22 06:09 demna-miqava

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 avatar Oct 09 '22 06:10 xjdqq