react-native-dotenv
react-native-dotenv copied to clipboard
How does react-native-dotenv decide
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 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.
Same Issue here.
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