this.socket = new SocketIO(' http://myserver.com:3000/',{secure:true}); //< - 这里错误 this.socket.on(' connect',()=> {this.socket.emit(' authentication',{token:this.state.valid,id_user:this.state .id});
undefined is not an object (evaluating this.sockets.initialize)
react-native:0.42
的 MACOS
观察:在Android中效果很好