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
In case someone is still looking for the answer. Do the basic thing first, Disable the VirtualBox Host-Only Network
first by opening your network configs. This worked for me.
I've had the same issue. The problem is that the command yarn start or npm start finds the first enabled network adapter it finds which just happens to be the adapter for VirtualBox on my (and many other machines). The solution is to either:
manually set REACT_NATIVE_PACKAGER_HOSTNAME environment variable, or disable the unused network adapter in Windows' Network Connection (see image) The problem is that Expo finds the first Network adapter, and not the active network adapter that provides the internet connection.