DEV Community

Discussion on: Re-thinking React Native env vars

Collapse
 
tamirla profile image
Tamir

Hi Giacomo, I came to the same conclusion regarding react-native-dotenv & react-native-config, so was happy to find this alternative you suggested, which looks very elegant and simple.
The only thing I didn't understand if if your solution support NOT keep sensitive values in git, for example, if I build my app in AppCenter, how can I access these values if they're not in my git repository ?
In react-native-dotenv I used env variables for this purpose, supported by AppCenter build configuration.