How to change listening port with React Native?

Sometimes, we want to change listening port with React Native.

In this article, we’ll look at how to change listening port with React Native.

How to change listening port with React Native?

To change listening port with React Native, we can set the port option.

For instance, we run:

react-native start --port 9988

to start the dev server and make it listen to port 9988.

Conclusion

To change listening port with React Native, we can set the port option.