`SMS.sendSMSAsync` should warn or throw for passing invalid parameters

Please provide the following:

  1. SDK Version: 38
  2. Platforms - all

This comes from a use case I had to struggle and understand, which took me long hours of debugging and frustrations.
Short story: it would be great if expo-sms could throw an error or at least a warning in dev stage to warn for undefined/null value being passed to SMS.sendSMSAsync

More details can be found here: https://stackoverflow.com/questions/63891897/expo-sms-sendsmsasync-inside-a-loop-pops-sms-modal-and-immediately-closing

Hey @zivl,

Thanks for providing such a detailed post on SO. I feel like this would be better suited as a Github Issue so that we can discuss it and then track any potential PRs that could arise. Would you mind creating an issue for this?


sure no prob https://github.com/expo/expo/issues/10277

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.