How to modify IP & port use react-native Android?

后端 未结 5 639
花落未央
花落未央 2020-12-16 08:27

I used the react-native Android demo project AwesomeProject and within the project I executed:

react-native start

In a second terminal:

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 09:08

    On Mac :

    1. go To Wifi
    2. Open network preferences
    3. Wi-Fi is connected to {wifi name} and has the IP address {xxx.xxx.x.x}.
    4. Get your ip address .
    5. Go to application on devices
    6. go to Dev Setting
    7. Tap to Debug server host & port for device
    8. Fill your IP address and port is 8081 (example ipaddress:8081) .

提交回复
热议问题