Working demo of React Native communication with Node.js via Socket.io. This was a trial of linking a RN app with Socket.io before adopting into another project.
Requires Node.js, Express.js, Socket.io, Ngrok
- cd server
- DEBUG=server:* npm start
- Run Ngrok for port 3000, copy the link and paste in mobileapp's App.js
socketURL
var
Requires Android Studio, React Native, Android SDK, Socket.io-client
- cd mobileapp
- npx react-native run-android