添加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.png和
https://i.stack.imgur.com/tILKE.png
答案 0 :(得分:0)
尝试将其添加到您的Podfile中
pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'RCTText',
'RCTImage',
'RCTNetwork',
'RCTWebSocket',
]