I run react-native init TestProject to create a project, then I run the app with iOS and it works fine.
I add socket.io-client in my dependencies, and run npm install.
"dependencies": {
"react-native": "^0.13.2",
"socket.io-client": "^1.3.7"
}
And add
window.navigator.userAgent = "react-native";
var io = require('socket.io-client/socket.io');
var TestProject = React.createClass({
...
I got
SyntaxError: Unexpected token '}'. Expected a statement as the body of a for loop.

I use socket.io before, and it works. However, every my React Native project that uses socket.io is broken now. So strange...
Line 60582 of http://localhost:8081/index.ios.bundle?platform=ios&dev=true is
for(length = members.length;property = members[--length];hasProperty.call(object,property) && callback(property))}}else
It seems that many ; symbol is gone in my js bundle file.
I run
react-native init TestProjectto create a project, then I run the app with iOS and it works fine.I add
socket.io-clientin my dependencies, and runnpm install.And add
I got
I use socket.io before, and it works. However, every my React Native project that uses socket.io is broken now. So strange...
Line 60582 of
http://localhost:8081/index.ios.bundle?platform=ios&dev=trueisIt seems that many
;symbol is gone in my js bundle file.