gcrabtree / react-native-socketio

Not Maintained! A React Native wrapper for both the Swift and Java Socket.Io clients.
MIT License
152 stars 53 forks source link

Where to import SocketIO from? #22

Closed thngdude closed 8 years ago

thngdude commented 8 years ago

Sorry if this seems trivial, but I can't figure it out: Where do you import SocketIO from in the example?

var socket = new SocketIO('localhost:3000', socketConfig);

If I do

import SocketIO from 'react-native-socketio'

I get "Cannot read property 'initialize' of undefined" error.

thngdude commented 8 years ago

Silly mistake of not installing via instructions.

LucasSouzaa commented 7 years ago

I'm getting this error and I don't know where I'm going wrong

krunalp1993 commented 7 years ago

@thngdude @LucasSouzaa Can you describe how it got working? I am following same instructions as docs. but, still not working for me.

Please help me.