gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 05:40:19 28 4
gpt4 key购买 nike

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

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
...

捆绑:

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

谁有同样的问题,我该如何解决,谢谢。

最佳答案

添加 var RCTLog = require('RCTLog'); 到 index.ios.js

它实际上是一个错误 https://github.com/facebook/react-native/issues/8663

关于ios - React-Native:模块 RCTLog 不是已注册的可调用模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38641219/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com