- npx react-native build-android --mode=release
- you will find the apk inside
android/app/build/outputs/apk/release
- don't change localhost port, else re-configure emulator, for help @article
- to get your current system ip address
ipconfig getifaddr en0
- sometimes we provide the correct api address but react native does not run properly
- to fix this, we have to bridge the ports
- run
adb devices
thenadb -s emulator-5554 reverse tcp:8080 tcp:8080