Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: react-native-midnight: NativeModule.Midnight is null. Make sure you have the package linked properly. #21

Open
raboomar opened this issue May 17, 2022 · 6 comments

Comments

@raboomar
Copy link

Everything is installed right so idk why I keep getting this error

@donovanhiland
Copy link
Contributor

Hi, sorry the the late (very late) response. If you could provide some information to me and a minimal repo with the issue reproduced that would be very helpful

@jakoblind
Copy link

I get the same error. I use expo. Is this supposed to work with expo?

@Mahmud-Aminu
Copy link

I was having the same issue. May be this package is not suppose to work with expo.

@sondalex
Copy link

I encountered the same error while using expo. This is due to expo go application not supporting custom native code. However, the issue was resolved by using development build instead.

If you decide to go the EAS build route, make sure to setup eas.
Then build the project:

npx eas-cli build --profile development

This will generate a binary for your platform of choice( iOS/Android).
You can then install the binary on your device or on an emulator. Expo's Internal distribution page provides more information in this regard.

@YubinKim16
Copy link

I am also encountering this issue but I'm not using Expo.

Also, it works fine in dev environment (in both simulator and real device), but this error only occurs in production mode.

@hailie-rei
Copy link

Pod install helped me: npx pod-install. I'm not using Expo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants