How to set and access environment variables?

Hello! I am new to expo and am looking for a way to set arbitrary environment variables via package.json startup scripts. e.g.:

MY_ENV_VAR=true expo start

So far I haven’t been able to find a good solution. Other posts (process.env.NODE_ENV is flaky - #3 by wexpo) suggest we use the DEV flag, but what if we want to get more granular than DEV?

Any/all help appreciated!!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.