Test project to set up flavors in React Native 0.57.2.
Based on this article.
Fresh init project, only 2 modifications:
- add product flavors in
app/build.gradle
- add flavor specific resources in
android/app/src/main/<flavorName>
Check above mentioned article for details.
If you get code:500
with a react-native-hmr
error on run try doing this. (It is a known bug with RN 0.57.2)