React Native iOS-安装Firebase Pod后,我收到addNetworkingHandler和NetInfo不变违规错误。如何解决?

时间:2019-01-23 21:20:37

标签: react-native

添加Podfile并安装Firebase后,出现addNetworkingHandler on target BlobMdule with params ()requiring module "node_modules/react-native/libraries/network/netinfo.js", which threw an exception: invariant violation: Native module cannot be null.错误。我已经尝试了一切,但没有运气。如果您知道这些错误,请提供帮助!屏幕截图: https://i.stack.imgur.com/8MhG5.pnghttps://i.stack.imgur.com/tILKE.png

1 个答案:

答案 0 :(得分:0)

尝试将其添加到您的Podfile中 pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga" pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'RCTText', 'RCTImage', 'RCTNetwork', 'RCTWebSocket', ]