How to Run Different Port in React Native?
May 24, 2022 . Admin
Hi Guys,
This post is focused on how to specify a port to run in react native. you will learn how to change the port react native. In this article, we will implement a react native run different port. if you want to see example of how to run different port in react native then you are a right place.
how to run a project different port in react native that's following steps.
Download ProjectIn the first step run the following command to create a project.
expo init DemoSolution 1:
You can define direct port with expo server command, let's run below command:
expo start --port 8000Output : Solution 2:
In this step, You will open the Package.json file and put the code.
Package.json{ "scripts": { "start": "expo start --port 8000", }, }let's run app:
expo start --port 8000Output : It will help you...