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

Native module cannot be null. #45

Closed
jackien1 opened this issue Jul 26, 2017 · 9 comments
Closed

Native module cannot be null. #45

jackien1 opened this issue Jul 26, 2017 · 9 comments

Comments

@jackien1
Copy link

While using react native with expo and the background timer, my phone displayed "Native module cannot be null". What does this mean and how can I fix it?

@leonardocarvalho
Copy link

Have you run react-native link react-native-background-timer?

@aldente05
Copy link

+1

i already do react-native link react-native-background-timer

"react-native-background-timer": "^1.2.0"
react-native-cli: 2.0.1
npm : 5.3.0
xcode : 8

@NonkelDaniel
Copy link

I am having the same issue, has anybody found a solution to this problem? I too have already ran the react-native link command.

romangetman pushed a commit to dipstudio/react-native-background-timer that referenced this issue Aug 30, 2017
Address deprecation warnings. Update main event emitter to NativeEventEmitter. Fixes ocetnik#45
@shanakaf
Copy link

Did you build the project (react-native run-ios) after installing the project? That solved the issue for me.

@googlecomvn
Copy link

Thanks shanakaf. You saved me time.

@j-mendez
Copy link

j-mendez commented Jan 5, 2018

you need to manually link it. One of the files does not properly include the lib so you need to go into the node modules to link it for iOS.

@natterstefan
Copy link

@aldente05 @NonkelDaniel this should help, as it did for me: #35 (comment)

@relu-xz
Copy link

relu-xz commented Jan 27, 2018

@ElN1n0 I have the same issue and sadly this module won't work with Expo, you have to detach it

@ocetnik
Copy link
Owner

ocetnik commented Aug 20, 2018

Duplicates #70 #72

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

No branches or pull requests

10 participants