-
-
Notifications
You must be signed in to change notification settings - Fork 47
Home
Kemal Ahmed edited this page Feb 10, 2024
·
55 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"]
]
}
- remove gitter
- recommend expo dotenv
- change how typescript types file is described
- for typescript, set moduleName to
react-native-dotenv
, clear cache jest --no-cache
- encourage people to use
NODE_ENV
instead ofAPP_ENV
- add windows instructions for
APP_ENV=
- error if people use
APP_ENV=production
orAPP_ENV=development
npm start -- --reset-cache
- fix dotenv-vault issue
- is there a way to automatically install as babel plugin not preset?
- is there a way to automatically install as devDependency not regular dependency?
- encourage
babel.config.js
vs.babelrc