Native module cannot be null.
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?
Have you run react-native link react-native-background-timer?
+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
I am having the same issue, has anybody found a solution to this problem? I too have already ran the react-native link command.
Did you build the project (react-native run-ios) after installing the project? That solved the issue for me.
Thanks shanakaf. You saved me time.
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.
@aldente05 @NonkelDaniel this should help, as it did for me: https://github.com/ocetnik/react-native-background-timer/issues/35#issuecomment-312783840
@elN1n0 I have the same issue and sadly this module won't work with Expo, you have to detach it
Duplicates #70 #72