While running app with react-native run-android
its connecting to 10.0.2.2:8081 instead of localhost:8081 and not able to debug.
Does anyone know how to fix so that it will connect to localhost instead?
On MAC I solved it by doing following:
Cmd + M
on emulator screenlocalhost:8081
react-native run-android
Debugger is connected now!
Hope it will help others :)