How to run multiple instances of metro bundler or react-native apps in a single machine ? The default port that the react-native app runs on is 8081.
Here is the solution, hoping you do not have to go through the same pain.
If you want to run more than one react-native apps in debugging mode, then follow the steps. By default metro bundler run on 8081. So you must change the port for each app to be different.
First list devices that you are using
adb devices
Running react-native apps on different ports .
react-native run-android --port 8081 --deviceId emulator-5556
react-native run-android --port 8088 --deviceId emulator-5554
localhost:8088
Hope this will help you as well, as it wasted my 3 hours just to figure this out.