Network Response Time Out Error (create-react-native-app) (expo)

后端 未结 26 1648
后悔当初
后悔当初 2020-12-02 10:00

I am trying to run create-react-native-app on expo app in android.

Firstly ,I created the project by writing command

create-react-native-app t

26条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 10:38

    in Windows

    1. run the ipconfig in command prompt

    2. get the ip4 address and copy it.

    Than go to

    1. This PC > properties > advanced system settings > environment variables
    2. add the following system variable: REACT_NATIVE_PACKAGER_HOSTNAME
    3. As the value for the variable I had to paste the ip4.

    then run the npm start It's work for me

提交回复
热议问题