git clone https://github.com/thinkocapo/rag-tag-react-native.git npm install exp start
The first few times I run
exp start it gives a URL like:
[13:23:13] Your URL is: exp://dz-dca.thinkocapo.rag-tag-react-native.exp.direct:80 and scanning the QR Code works, app loads fine.
But upon a re-start the URL changes to:
Your URL is: exp://192.168.1.73:19000
and when I scan the QR it errors on my mobile device. I did not make any changes to the source code, all I did was ctrl+c to kill the app and then I re-started the app.
It also says in my expo CLI log:
[13:15:29] Switched to a LAN URL because the tunnel appears to be down. Only devices in the same network can access the app. Restart with `exp start --tunnel` to try reconnecting.
exp start --tunnel it still shows a URL like
exp://192.168.1.73:19000, QR scan still fails.
SOLUTION That is not sustainable for development:
Delete the entire project directory, and re-do
expo start, it then works on first try:
[13:23:13] Your URL is: exp://dz-dca.thinkocapo.rag-tag-react-native.exp.direct:80
and sure enought I do ctrl+c to kill the app, I restart it and its
Your URL is: exp://192.168.88.12:19000 again. Weird!
I’m at a co-working space. I’m not using a VPN. Wifi connection is fine, loading pages no issue, full strength.