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

openInbox not working on Android

awkpagong opened this issue · comments

When calling openInbox() on Android I'm getting the following error: TypeError: null is not an object (evaluating '_reactNative.NativeModules.Email.open'). I am guessing there is something wrong with the auto-linking but I do not have enough expertise to troubleshoot the problem. I am on react-native version 62.2. Any help would be greatly appreciated!

Screenshot 2020-04-13 17 28 55

Did you rebuild the app and clean any caches after installing the library?

@tschoffelen I tried doing watchman watch-del-all && rm -f yarn.lock && rm -rf node_modules && yarn && yarn start --reset-cache. Is there something else I should try? Note: I am using an ejected expo app.

That's all fine for the javascript side, but did you also rebuild the native part of the app (e.g. using react-native run-android)?

That's all fine for the javascript side, but did you also rebuild the native part of the app (e.g. using react-native run-android)?

@tschoffelen yes I also did npx react-native run-android but the error is still occurring. Any idea what else might be causing the issue?

Ive just tested this in android and it works after rebuilding the native app, i believe this can be closed.

I think so too, thanks @joaosousafranco! :)