thoughtbot / react-native-template

Template React Native project to be used with Cookiecutter
MIT License
61 stars 8 forks source link

Add react-native-config #10

Closed jakecraige closed 7 years ago

jakecraige commented 7 years ago

Add the react-native-config package to support .env style configuration that supports debug and release builds and the variables are accessible from the native and app code.

Adds a .sample.env file that gets copied to .env.local and .env.production when running bin/setup. These files are ignored since they contain potentially senstive API keys. The .local variant is used for debug builds while the .production is used for release builds.