React-native, "Native module cannot be null" -


i upgrade react-native 0.28 0.30, , error:

"native module cannot null".

the problem seem line/package:

var pushnotification = require('react-native-push-notification'); 

enter image description here in advance

the red-box complaints react-native cannot find symbol <unkown> in pushnotificationios.js line 18.

this happens when fail link third lib target causing nativemodules find nothing @ attempt.

to solve this, project navigator -> target -> general -> linked frameworks , libraries, make sure somelib.a there.

enter image description here

in case, please follow ios install guides , react-native doc


Comments