-
-
Notifications
You must be signed in to change notification settings - Fork 52
Home
Kemal Ahmed edited this page Jul 24, 2026
·
64 revisions
Welcome to the react-native-dotenv wiki!
- make sure to add metro (I dont remember why)
module.exports = {
"presets": ["module:metro-react-native-babel-preset"],
"plugins": [
["module:react-native-dotenv"]
]
}- add windows instructions for
APP_ENV= - is there a way to automatically install as babel plugin not preset?
- is there a way to automatically install as devDependency not regular dependency?
- You can specify a file using
--env-file=.envbut be careful - this won't work when you do
react-native run-androidorreact-native run-ios, but it's okay because you just need to run the command once to do the initial build. After that point, you should be able to build changes usingreact-native startwhere this will work
Add react native web stuff https://github.com/goatandsheep/react-native-dotenv/issues/533
We are part of holopin partners. Congrats on reading the wiki. Please accept this holopin badge.