tttstudios / react-native-otp-input

Tiny Javascript library which provides an elegant UI for user to input one time passcode.
MIT License
535 stars 241 forks source link

🐛 fixed null SMS string #228

Open brandonzalcman opened 4 months ago

brandonzalcman commented 4 months ago

Migrated to using expo clipboard to resolve null getString from clipboard.

Issue was found if phone did not have a SIM card and therefore did not receive a SMS, the clipboard would return null and break. This fixes as it allows null, so the user can type the code if there is none, or auto paste if they receive.