How do you do environment variables in Expo correctly?

Please provide the following:

  1. SDK Version: 40.0.1
  2. Platforms(Android/iOS/web/all): ALL
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

The documentation for the first section for “environment variables” has no examples:

I’ve tried the usual .env file and different variations on that, but nothing works.

Any help here?

looks like you answered your question on discord :slight_smile: i added some more context

1 Like

Also, exporting/sourcing the ENV vars locally works:

Thanks @notbrent! (sorry for the multi-post)