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

#1

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:

0 Likes

#2

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

1 Like

#3

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