Change dev server when running react native andoroid


(Deepakaggarwal7) #1

Found that 8081 is in use by McAfee (and can’t be changed because of network policies). Hence changed dev port to 8088 (react-native -port 8088). Browsing localhost:8088/status returns packager-status:running

However when I run react-native android-run, it searches for dev server on default 10.0.2.2:8081 and output says "JS Server not recognized…

Q. How can I configure react-native android-run to use localhost:8088 instead of 10.0.2.2:8081?