首页 > undefined is not... 'RCTWebSocketManager.connect'

undefined is not... 'RCTWebSocketManager.connect'

往一个iOS空项目里集成React Native,运行时报如下错误:

终端机的运行情况:

Xcode报这样的错误:

2016-06-28 15:32:59.030 [warn][tid:com.facebook.React.JavaScript] 'Warning: Native component for "RCTImageView" does not exist'
2016-06-28 15:32:59.098 [info][tid:com.facebook.React.JavaScript] 'Running application "SimpleApp" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF'
2016-06-28 15:32:59.102 [warn][tid:com.facebook.React.JavaScript] 'Error: undefined is not an object (evaluating \'RCTWebSocketManager.connect\')\n stack: \n  connectToSocketImpl  index.ios.bundle:14536\n  WebSocketBase        index.ios.bundle:14659\n  WebSocket            index.ios.bundle:14530\n  setupDevtools        index.ios.bundle:46258\n  renderApplication    index.ios.bundle:44601\n  run                  index.ios.bundle:44493\n  runApplication       index.ios.bundle:44521\n  __callFunction       index.ios.bundle:5534\n  <unknown>            index.ios.bundle:5470\n  guard                index.ios.bundle:5423\n  <unknown>            index.ios.bundle:5470\n  <unknown>            index.ios.bundle:5467\n  perform              index.ios.bundle:7012\n  batchedUpdates       index.ios.bundle:16526\n  batchedUpdates       index.ios.bundle:6315\n  <unknown>            index.ios.bundle:5466\n  guard                index.ios.bundle:5423\n  processBatch         index.ios.bundle:5465\n URL: http://localhost:8081/index.ios.bundle\n line: 14536\n message: undefined is not an object (evaluating \'RCTWebSocketManager.connect\')'
2016-06-28 15:32:59.104 [warn][tid:com.facebook.React.JavaScript] 'Unable to load source map: RCTNetworking module is not available'

有没有大神帮忙看下?


pod 'React'
pod 'React', :subspecs => [

'RCTText',
'RCTImage',
'RCTNetwork',
'RCTWebSocket'

]

【热门文章】
【热门文章】