I’m working on a new laptop and I can’t open any expo/react native projects using Expo Go. I tried scanning the QR code that is in ‘Tunnel’, ‘LAN’, ‘Local’ and I still can’t connect to the development server.
What I’ve tried so far:
Install/Uninstall expo cli/nodejs
Set Execution-Policy to Unrestricted
Added REACT_NATIVE_PACKAGER_HOSTNAME in Environment Variables>System Variables(I’m not familiar with this one, but it seems that it doesn’t do anything or I’ve applied it wrong)
Hi everyone! It seems that adding REACT_NATIVE_PACKAGER_HOSTNAME(Replacing 127.0.0.1 with my actual IP) in the environment variable does not do the trick, but setting it inside the “app/project’” works for me.
I opened our project in VSCode > Open new terminal > then execute:
set REACT_NATIVE_PACKAGER_HOSTNAME={added my/your IP here}
After that, I run npm/expo start and it showed my IP in the link instead of 127.0.0.1 and I can now connect to the development server!