react-native-dotenv icon indicating copy to clipboard operation
react-native-dotenv copied to clipboard

How does react-native-dotenv decide

Open OguzhanKazak opened this issue 6 years ago • 3 comments

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 ?

OguzhanKazak avatar Aug 02 '19 12:08 OguzhanKazak

@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.

teckel12 avatar Aug 30 '19 14:08 teckel12

Same Issue here.

ebnersilva avatar Dec 20 '19 13:12 ebnersilva

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

timothystewart6 avatar Mar 11 '20 18:03 timothystewart6