Я довольно новичок, чтобы реагировать на нативные, и я хочу создать приложение с пружиной на заднем плане. Я попытался запустить приведенный здесь код 1 , но он не может подключиться к какой-либо службе. Вот что я получаю в своих логах
Running application "myApp" with appParams: {"rootTag":1}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
11-14 07:49:13.523 18875 18997 I ReactNativeJS: Open!
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { type: 'message',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: target:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { CONNECTING: 0,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: OPEN: 1,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: CLOSING: 2,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: CLOSED: 3,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: readyState: 1,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _eventEmitter:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { _subscriber:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { _subscriptionsForType:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { appStateDidChange:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: [ { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { _subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: isAvailable: true,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _eventHandlers:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { change:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { _mapData: [],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _objectIndex: {},
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _stringIndex: {},
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _otherIndex: {} },
11-14 07:49:14.041 18875 18997 I ReactNativeJS: memoryWarning:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { _mapData: [],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _objectIndex: {},
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _stringIndex: {},
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _otherIndex: {} } },
11-14 07:49:14.041 18875 18997 I ReactNativeJS: currentState: 'active' },
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'appStateDidChange',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 0 } ],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: websocketMessage:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: [ ,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'websocketMessage',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 1 } ],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: websocketOpen:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: [ ,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'websocketOpen',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 1 } ],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: websocketClosed:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: [ ,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'websocketClosed',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 1 } ],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: websocketFailed:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: [ ,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'websocketFailed',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 1 } ],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: didUpdateDimensions:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: [ { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { _subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: sharedSubscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _currentSubscription:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'websocketMessage',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 1 } },
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'didUpdateDimensions',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 0 } ],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: hardwareBackPress:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: [ { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { _subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: sharedSubscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _currentSubscription:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'websocketMessage',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 1 } },
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: context: undefined,
11-14 07:49:14.041 18875 18997 I ReactNativeJS: eventType: 'hardwareBackPress',
11-14 07:49:14.041 18875 18997 I ReactNativeJS: key: 0 } ],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: collectBugExtraData:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: [ { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { _subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: sharedSubscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: _currentSubscription:
11-14 07:49:14.041 18875 18997 I ReactNativeJS: { subscriber: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: emitter: [Circular],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: listener: [Function],
11-14 07:49:14.041 18875 18997 I ReactNativeJS: co
Не могли бы вы помочь мне с этим кодом, а также направить меня к какому-нибудь ресурсу, который поможет подключиться к пружинной веб-розетке с использованиемact-native. Также, пожалуйста, дайте мне знать, если есть лучший способ сделать это