React Native Ios: 本机模块不能为空

React Native Ios: Native Module cannot be null

在 IOS

中发现错误

Native Module cannot be null

我不使用 react-native-push-notification

这通常发生在您无法 link 目标的第三个库导致 NativeModules 在尝试时找不到任何东西。

要解决此问题,请转到 your Project Navigator -> Target -> General -> Linked Frameworks and Libraries,确保 somelib.a 在那里。

对于您的情况,请遵循 ios install guides and react-native doc