Mayuresh Patil
Mayuresh Patil

Reputation: 2200

How to run two react native android applications on two different servers at same time?

I have my two react native android apps which I want to run at the same time on my device.

Right now, both my applications connect to 8081 - and whenever one connects, it kicks the other one off.

Upvotes: 0

Views: 1155

Answers (3)

user10154568
user10154568

Reputation:

"scripts": {
    "start": "react-scripts start -p 3001"
  },

Upvotes: -1

user10154568
user10154568

Reputation:

Use Expo By scanning the QR code with two devices you can run in two separate devices...

Upvotes: 0

Charanjeet Singh
Charanjeet Singh

Reputation: 251

You can use the below command for this

react-native start --port 9988

For the official documentation, you can try the https://facebook.github.io/react-native/docs/troubleshooting#using-a-port-other-than-8081

Upvotes: 2

Related Questions