thoughtbot / react-native-template

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

Fix incorrect env file being loaded on iOS #26

Closed jakecraige closed 7 years ago

jakecraige commented 7 years ago

The buil pre-actions script was not loading build settings from the app target, so it never had release set and was thus using the .env.production for all builds.

This configures it to use build settings from the app target which provides that env var and sets it up to load the .local variant for debug builds.