react-native-dotenv
react-native-dotenv copied to clipboard
A Babel preset let you import application configs from .env file (zero runtime dependency)
I really appreciate this project! To get env vars to be updated locally, we have to change the JS file that imports an ENV var [Docs](https://github.com/zetachang/react-native-dotenv#changes-to-env-file-is-not-updated). The bigger problem I...
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 ?
While building the js bundle I get: `The package at "node_modules/react-native-dotenv/index.js" attempted to import the Node standard library module "path". It failed because React Native does not include the Node...
Solves the issue of Typescript not finding the named environment variable import from the npm package. Solution obtained from https://github.com/zetachang/react-native-dotenv/issues/76#issuecomment-585171009
Since dotenv crashes if the variables in `.env` are undefined.
Sometimes you don't want to pull in your entire .env file, and would rather have a whitelist for the keys that are accepted. This adds that whitelist. I've also added...
When I was working in a monorepo, It was looking for dotenv files in the root of the repository. So, this helps to append an `extraPath` to find dotenv files.
according to dotenv documentation: > What happens to environment variables that were already set? We will never modify any environment variables that have already been set. In particular, if there...
Hi @zetachang, Thanks for the awesome library that we use for our app. We found this particular extension useful for us and could benefit others too. This PR extends react-native-dotenv...
Yeah! I know many people have been asking for multi environments. I don't wanna boring you one more time, but I have done some changes to permit that it works....