includable / react-native-email-link

📭 Open an email client from React Native (for 'magic link' type functionality).

Home Page:https://includable.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clicking Cancel in the ActionSheet throws unhandled promise exception

ShaharyarMaroof opened this issue · comments

I am calling the openInbox function on a button click from my app. The ActionSheet for the Email App Selection opens up showing Gmail , Mail and the Cancel option.

If I click on the cancel option the following exception occurs:
IMG_0528

Oh, that's obviously not the intended behaviour. Feel free to submit a PR if you have the time.

Otherwise a quick fix is put a try-catch statement around the call, although that's obviously not the cleanest solution...