Any way to determine if the app is in "standalone" or "expo" env?

Hey :slight_smile:

The title pretty much sums it up - I can’t find an answer anywhere. It would be very useful for setting up multiple environments (dev, stage, prod) for testing different aspects of the app.

Thanks :slight_smile:

1 Like

Hello :slight_smile: You can use Expo.Constants.appOwnership:
https://docs.expo.io/versions/latest/sdk/constants.html#expoconstantsappownership

3 Likes

Ah, cool - will that be null, undefined, 0.0 or something else when it’s a standalone?

EDIT:
For some reason, the link scrolled me down to expoVersion, but then I found appOwnership - Thank you for helping :slight_smile:

2 Likes