How are env variables (secrets) used?
See original GitHub issueIn react-native, you could use react-native-config
. But since it requires touching iOS and Android files, it won’t be possible to use it with Expo. How are you supposed to feed different env variables, especially those that hold api keys?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Analyzing the Hidden Danger of Environment Variables for ...
The use of environment variables is a common practice in the DevOps community as it provides easy access to configuration properties.
Read more >Is it unsafe to use environmental variables for secret data?
Environment variables are passed down to child processes, which allows for unintended access. This breaks the principle of least privilege.
Read more >Why you shouldn't use ENV variables for secret data
Putting secrets in ENV variables quickly turns into tribal knowledge. New engineers who are not aware of the sensitive nature of specific ...
Read more >Environment Variables, or Keeping Your Secrets ... - Medium
Credentials are usually hidden in environment variables that your application can pick up when it runs. Our code now looks like this: We...
Read more >Inject secrets into environment variables - Documentation
Environment Files allow you to codify multiple (secret) environment variables with KEY=VALUE statements separated by a newline. These files have the .env ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@redgenie I happened to come across this issue, looking for the same solution. However, I found this alternative: https://github.com/zetachang/react-native-dotenv. This tool doesn’t use native code, since it is simply implemented as a Babel plugin. So you can use it with Expo!
@btroia package.json