If we have a React Native app built with Expo, when starting the app via npx expo start
, we get this in our terminal:
Where it says: “Metro waiting on exp://192.168.100.8:8081”. This ‘url’ depends on the current network we are connected to, and can change.
Is there any way to dynamically get this ‘url’ with expo? For example, if I wanted to create a screen that displays this ‘url’, how would I go about getting this value?
(I’m saying ‘url’ in quotes because to my knowledge it is technically not a url}