React-Native:模块 RCTLog 不是注册的可调用模块

Ech*_*eng 5 ios react-native

在 React-Native 0.29 和 0.30 中。
当我使用离线包在 iOS 设备上运行时,总是收到以下错误信息:

未处理的 JS 异常:模块 RCTLog 不是已注册的可调用模块。
RCTFatal + 124
-[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 584
+ 144
+ 296
+ 68
-[RCTModuleMethod invokeWithBridge:module:arguments:] + 1684
-[RCTBatchedBridge _handleRequestNumber:moduleID:methodID:
-37params] RTBatchedBridge handleBuffer:]_block_invoke.452 + 1144
...

捆绑:

react-native bundle --entry-file ./index.ios.js --platform ios --dev false --bundle-output ./Example/index.ios.jsbundle --assets-dest ./Example/ --verbose
Run Code Online (Sandbox Code Playgroud)

有没有人遇到同样的问题,我该如何解决,谢谢。

Dan*_*Dan 0

你是否在index.ios.js文件中导入React?