`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: reactjs - expo SMS.sendSMSAsync inside a loop pops sms modal and immediately closing - Stack Overflow

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?

Cheers,
Adam

sure no prob SMS.sendSMSAsync should warn or throw for passing invalid parameters · Issue #10277 · expo/expo · GitHub

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