Skip to content

stevecass/socket-io-react-native

Repository files navigation

After running npm install go to ./node_modules/socket.io-client/socket.io.js and change line 2985 from
var isAndroid = navigator.userAgent.match(/Android/i); to var isAndroid = /Android/i.test(navigator.userAgent);

That should stop the client from crashing (because navigator.userAgent is null) but also means you don't have to do the hack of setting it in your code, which breaks when the Chrome debugger window is open.

About

A simple demo app using react native and socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published