react-native-env-vars
v0.0.1
Published
Import multiple dotenv configurations to your app
Downloads
2
Maintainers
Readme
react-native-env-vars
Import multiple dotenv configurations to your app
Introduction
react-native-env-vars
is a module that loads environment variables from a .env files and expose those variables to React Native. The environments separate from code, it is based on The 12-Factor App methodology.
react-native-env-vars
support Dynamic Environments feature, to support multiple environments you don't need to create multiple app with this feature.Considering that a lot developer use the react-native-config in the pass. so the
react-native-env-vars
fully compatible withreact-native-config
.
IMPORTANT
react-native-env-vars
is NOT AVAILABLE yet, we plan release our first version in late October, 2019.
Dynamic Environments
A common way to support multiple environments in native mobile app is building the app with multiple bundle id. It means, developer need to deal with the configs multiple times in native side. Especially the config that relative to bundle id. (eg: third-part login certificate). and the QAs must install a series of apps to test devices. However, with Dynamic Environments
, you just need to install one app when you testing and you can change your env dynamically with the APIs
. or manually with the Debug-Component
.