npm start specify port code example
Example 1: change port in npm start
npm run dev -- --port 8080
Example 2: yarn start port
Create a .env file in your project folder
add the line "PORT=3006" inside the file and save
Example 3: react native npm run start port
"scripts": { "start": "react-native start --port 9988"}