Recently I ran into a problem in React Native.
I wanted to be able to have more granular control of my build besides React Native's __DEV__
.
Our QA people need to have a few tools at their disposal to run the APP vs our live and test servers.
I don't want to make them download the project on Github and run it. That would force them onto a mac for iOS builds.
I don't want to ship the app with __DEV__
on. It would be quite complex to have them connect to some dev package server to run the app
A third option was needed. There should be a __QA__
flag. This way I can release the APP in without __DEV__
but keep some QA features I want.
The naive way would be to have something like a globals.js
file that you include and edit the file for different releases. eg.