React native:调用JavaScript模块方法AppRegistry.runApplication()失败.


Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

我在其他react-native项目中尝试了相同的代码,但值是相同的。

在代码中可能存在一个问题,例如无效抓取(在我的情况下,错误地使用firebase查询来获取数据)。可能会错误地获取包等(正如官方react-native git问题中提到的)。试着检查一下

最新更新