Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

How does react-native-dotenv decide #64

Open
OguzhanKazak opened this issue Aug 2, 2019 · 3 comments
Open

How does react-native-dotenv decide #64

OguzhanKazak opened this issue Aug 2, 2019 · 3 comments

Comments

@OguzhanKazak
Copy link

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 OguzhanKazak changed the title How does react-native-dotenv deciede How does react-native-dotenv decide Aug 2, 2019
@teckel12
Copy link

@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
Copy link

Same Issue here.

@timothystewart6
Copy link

timothystewart6 commented Mar 11, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants