Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29603

How to access build variant ( android ) in react native code

$
0
0

I have made a new releaseStaging build variant in android code as shown below:

    buildTypes {        debug {        }        releaseStaging {            initWith release            applicationIdSuffix ".releasestaging"            matchingFallbacks = ['release']        }        release {        }    }

I want to show/hide some text in react native code based on the build variant. I want to know in react native code, the build variant name.

How to achieve that? Thanks in advance!


Viewing all articles
Browse latest Browse all 29603

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>