Running multiple react-native apps in different ports

Jaimin Bhut
Jul 10, 2022

In this blog, I will show you how to run multiple react native application on different port. So let’s start

First you need to do some changes in metro.config.js file. You need to add port in metro.config.js as shown in below code snippet.

If react native version is ≥ 67 then you need to do some changes for iOS. So in node_modules/react-native/React-Core.podspec file replace line number 50 with below line. Also find your PORT (e.g If your port 8081) in Xcode and replace your old PORT with new PORT in RCTDefines.h.

After that you just need to do run application with below command.

That is it, Thanks for reading

Happy Coding :)

--

--

Jaimin Bhut

Indian 🇮🇳 | React Native | Android | Java | Javascript