react-native-background-timer icon indicating copy to clipboard operation
react-native-background-timer copied to clipboard

Native module cannot be null.

Open jackien1 opened this issue 9 years ago • 9 comments

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?

jackien1 avatar Jul 26 '17 06:07 jackien1

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

leonardocarvalho avatar Jul 27 '17 00:07 leonardocarvalho

+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

aldente05 avatar Aug 18 '17 17:08 aldente05

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

NonkelDaniel avatar Aug 22 '17 09:08 NonkelDaniel

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

shanakaf avatar Sep 21 '17 13:09 shanakaf

Thanks shanakaf. You saved me time.

googlecomvn avatar Nov 06 '17 15:11 googlecomvn

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.

j-mendez avatar Jan 05 '18 17:01 j-mendez

@aldente05 @NonkelDaniel this should help, as it did for me: https://github.com/ocetnik/react-native-background-timer/issues/35#issuecomment-312783840

natterstefan avatar Jan 12 '18 08:01 natterstefan

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

relu-xz avatar Jan 27 '18 12:01 relu-xz

Duplicates #70 #72

ocetnik avatar Aug 20 '18 07:08 ocetnik