This is example of TCP connection
Client used the lib: react-native-tcp-socket
How to run:
server: node ./server.js
client: react-native run-android
it only works for simulator, it doesnt work for real device, if you want it work for real device, you have to config host for server and client
For android simulator the host is: 10.0.2.2