React-native, “Native module cannot be null”

前端 未结 12 1142
星月不相逢
星月不相逢 2020-12-09 14:42

I just upgrade React-native from 0.28 to 0.30, and get this error:

\"Native module cannot be null\".

The problem seem to be with the line/package:

12条回答
  •  鱼传尺愫
    2020-12-09 15:03

    The red-box complaints react-native cannot find some symbol in PushNotificationIOS.js line 18.

    This usually happens when you fail to link the third lib to your target causing NativeModules find nothing at attempt.

    To solve this, your Project Navigator -> Target -> General -> Linked Frameworks and Libraries, make sure somelib.a is there.

    In your case, please follow the ios install guides and react-native doc

提交回复
热议问题