React Native Expo change default LAN IP

后端 未结 10 1009
星月不相逢
星月不相逢 2020-12-13 09:23

I\'ve got virtual box installed. And when I look at the host > LAN > ip address is exp://192.168.56.1:19000.

How can I change it without disable the network? because

10条回答
  •  不思量自难忘°
    2020-12-13 10:08

    You can specify the REACT_NATIVE_PACKAGER_HOSTNAME environment variable to use the correct IP address.

    If you're using XDE, then make sure to launch it from your project directory with xde . after you've installed the command line tools.

提交回复
热议问题