zetachang / react-native-dotenv

A Babel preset let you import application configs from .env file (zero runtime dependency)
MIT License
915 stars 68 forks source link

How does react-native-dotenv decide #64

Open OguzhanKazak opened 5 years ago

OguzhanKazak commented 5 years ago

Hi, I wonder how does react-native-dotenv deciede which .env file to fetch data (.env.product or .env.dev), can someone explain me please ?

teckel12 commented 5 years ago

@OguzhanKazak I'm using Expo and it's supposed to do it via the production mode switch. But, it's always in production mode for me and I can't seem to get it to run in development mode no matter what.

ebnersilva commented 4 years ago

Same Issue here.

timothystewart6 commented 4 years ago

You have to reset your cache after making any changes.

Stop the bundler and run: react-native start --reset-cache

Then react-native run-ios

Not sure how you do the equivalent in expo