Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Native: Module RCTLog is not a registered callable module

Tags:

In React-Native 0.29 and 0.30.
When I running on iOS device using the offline bundle, always got Error information below:

Unhandled JS Exception: Module RCTLog is not a registered callable module.
RCTFatal + 124
-[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 584
+ 144
+ 296
+ 68
-[RCTModuleMethod invokeWithBridge:module:arguments:] + 1684
-[RCTBatchedBridge _handleRequestNumber:moduleID:methodID:params:] + 712
__33-[RCTBatchedBridge handleBuffer:]_block_invoke.452 + 1144
...

Bundle with:

react-native bundle --entry-file ./index.ios.js --platform ios --dev false --bundle-output ./Example/index.ios.jsbundle --assets-dest ./Example/ --verbose

Dose any one got the same issue, how can I fix it, Thx.

like image 694
Echo Cheng Avatar asked Jul 28 '16 15:07

Echo Cheng


1 Answers

Add var RCTLog = require('RCTLog'); to index.ios.js

Its actually a bug https://github.com/facebook/react-native/issues/8663

like image 194
Saleeh Avatar answered Sep 28 '22 04:09

Saleeh