我的ReactNative应用已成功构建,但在打开时引发错误。有谁知道这些错误是什么以及如何解决它们?我尝试了许多修复程序,但均未成功。过去效果很好,我不确定是什么引起了问题。 谢谢!
我是从模拟器中得到的:
Requiring module "node_modules/react-native/Libraries/Network/NetInfo.js",
which threw an exception: Invariant Violation: Native module cannot be null.
moduleThrewError
1539926a-39da-4dc1-8104-e4eadd029032:301:12
loadModuleImplementation
1539926a-39da-4dc1-8104-e4eadd029032:225:13
guardedLoadModule
1539926a-39da-4dc1-8104-e4eadd029032:158:14
metroRequire
1539926a-39da-4dc1-8104-e4eadd029032:88:75
Object.get
1539926a-39da-4dc1-8104-e4eadd029032:2096:14
Socket.init
1539926a-39da-4dc1-8104-e4eadd029032:120178:20
Engine.init
1539926a-39da-4dc1-8104-e4eadd029032:138810:22
<unknown>
1539926a-39da-4dc1-8104-e4eadd029032:82014:18
loadModuleImplementation
1539926a-39da-4dc1-8104-e4eadd029032:262:7
guardedLoadModule
1539926a-39da-4dc1-8104-e4eadd029032:158:14
也可以从设备获取此信息:
Exception '-RCTCxxBridge networking]: unrecognized selector sent to
instance 0x2802685a0 was thrown while invoking addNetworkingHandler on
target BlobModule with params ()