'How to run react-native project in another port instead of 8081 IOS

I'm running react-native project in port 8081, i want to run another react-native project simultaneously in other port. I tried these

npx react-native run-ios --port=8080
changed port for RCT_METRO_PORT in ios/example.xcodeproj/project.pbxproj

these steps not worked for me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source