I was wondering if there was any cross-platform (android/ios/expo-client/emulators) that would permit me to easily get my api url (which runs in the same computer I run “exp start” on)
Hi, try examining the contents of Expo.Constants.manifest, which will contain information about where the app is being served from.
Whether in ExpoKit or not, you can always exp start --localhost or exp start --lan to switch the kind of development url generated by your exp instance.
Also worth mentionning I could not get --localhost option to work in Android simulator, in which usecase is it supposed to work? --lan option seems to work fine on phone/simulator (as long as phone is on same wifi network) so I wonder why I would use localhost instead of always using --lan?