Open BenjaminGuelle opened 2 years ago
I can confirm this. And it is only happening on Android. Its the Clipboard thats not working... I will investigate
I created a fork which works: https://github.com/hirbod/react-native-otp-input
Check the readme, because the clipboard library is not at -community but -clipboard now.
@ShashankEd at the end I ditched this repo and used a way more reliable library: https://github.com/retyui/react-native-confirmation-code-field
Together with https://github.com/akvelon/react-native-sms-user-consent I managed to get a perfect autofill solution as well for android with the userConsentApi and autofill on iOS
Hey @hirbod thank you for reverting back on my query, I will try your suggestion and let you know how it goes.
Hi @hirbod
@ShashankEd at the end I ditched this repo and used a way more reliable library: https://github.com/retyui/react-native-confirmation-code-field
Together with https://github.com/akvelon/react-native-sms-user-consent I managed to get a perfect autofill solution as well for android with the userConsentApi and autofill on iOS
@ShashankEd at the end I ditched this repo and used a way more reliable library: https://github.com/retyui/react-native-confirmation-code-field
Together with https://github.com/akvelon/react-native-sms-user-consent I managed to get a perfect autofill solution as well for android with the userConsentApi and autofill on iOS
Thank you @hirbod it helped me to implement my app's functionality!😀
Hi just install npm i @react-native-community/clipboard and it will works!!
Hi @ShashankEd, i'm still having this error after installing @react-native-community/clipboard
. I changed to the alternative above.
Hi @Olyno can you share error
It's literally the same error that @ShashankEd has above.
Thank @ShashankOodles1 work for me!
Don't use the recommended module for Clipboard.
Use => https://www.npmjs.com/package/@react-native-clipboard/clipboard
Then, the go to => node_modules/@twotalltotems/react-native-otp-input/dist/index.js in your project
Remove the default clipboard the library is using. Change it to the one you installed. That's all. The package is using the deprecated Clipboard from react-native that is why it can't getString().
I hope you get this. It should work.
Hello
when arrived on screen pincode on Android, i'm stopped with this message :
i think this problem come to clipboard maybe, not sure
however, it works on ios