detox-expo-helpers
detox-expo-helpers copied to clipboard
Expo Go app is opening with wrong server URL when calling `await reloadApp()`
When I call
await reloadApp();
it is opening the app with the wrong Metro server URL

As you can see the URL is trying to connect to port :80
, which is incorrect, it should be port :19000
.
A quick look inside the library reveals that it is calling constructManifestUrlAsync
, which returns the right URL with right LAN IP, but not the right port.
Forcefully set the url
works correctly
Maybe something have changed with newer version of Expo? Upgrading @expo/xdl
doesn't fix this issue so maybe we have to update some logic inside this library?