DEV Community

Discussion on: Re-thinking React Native env vars

jdelvx profile image
José Del Valle • Edited on

Nice and simple solution. I had to do this for it to work:

const env = envs[active];

export default env;
Enter fullscreen mode Exit fullscreen mode

But besides that all good! It's kinda the same approach as env-cmd which I was using before ejecting from expo, but once I ejected I had to switch to this approach