Is there an easy way to change the default port when i type in react-native run-android?
问题 My steps to change the default port: react-native start --port 9999. react-native run-android. change the port in the app. Is there an easy way? 回答1: You can also change permanent the port with change default server in react native node modules your_app\node_modules\react-native\local-cli\server\server.js and change the port 8081 to 9999 like this : .... module.exports = { name: 'start', func: server, description: 'starts the webserver', options: [{ command: '--port [number]', default: 8081,