react-native-swift-socketio
react-native-swift-socketio copied to clipboard
Undefined is not an object
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 });
Seems like NativeModule don't have Socket class, so it's throwing undefined error. I tried checking up bridges and exports but no luck.