I want to use 2 productFlavors for my Android App: live and staging.
productFlavors
live
staging
In app/build.grandle I defined them like this: <
app/build.grandle
There is a pull request pending for React Native that will fix this issue.
Until then you can simply replace /node_modules/react-native/local-cli/runAndroid/runAndroid.js with the runAndroid.js file from the pull request.
/node_modules/react-native/local-cli/runAndroid/runAndroid.js