General setup
Like iOS, we have build flavors to generate our Official and Experimental app versions. To see these flavors, navigate to android > app > src folder.
experimentalandofficialfolders contain app icons and splash screens.mainfolder contains core implementations.debugfolder contains code to run the app in debug mode.
To build the Experimental app using experimental, debug, and main folders:
Set
APPLICATION_ID,VERSIONCODEandBugsnagAPIKeyon./android/gradle.propertiesGenerate a new image asset for
ic_notificationand targetmain.Generate a new image asset for
ic_launcherand targetexperimental.Splash screen uses the same asset as the
ic_launcher, and you can change the background onsplashBackground.
.png?sv=2022-11-02&spr=https&st=2025-10-26T23%3A38%3A43Z&se=2025-10-26T23%3A49%3A43Z&sr=c&sp=r&sig=UvLp2fDUe8IHUIUQFMVWorDvnqgbvGnzjwAzHJC2UPg%3D)
Change the app name and share the extension name on
./android/app/src/main/res/values/strings.xml
.png?sv=2022-11-02&spr=https&st=2025-10-26T23%3A38%3A43Z&se=2025-10-26T23%3A49%3A43Z&sr=c&sp=r&sig=UvLp2fDUe8IHUIUQFMVWorDvnqgbvGnzjwAzHJC2UPg%3D)
Generate upload key
Follow these steps to generate the Keystore for verifying your app on Google Play:
Run the following commands:
cd android/app keytool -genkeypair -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000To learn more about generating an upload key in ReactNative, see the official documentation.
The command prompts you for some credentials.
.png?sv=2022-11-02&spr=https&st=2025-10-26T23%3A38%3A43Z&se=2025-10-26T23%3A49%3A43Z&sr=c&sp=r&sig=UvLp2fDUe8IHUIUQFMVWorDvnqgbvGnzjwAzHJC2UPg%3D)
Set
KEYSTORE_PASSWORDandKEY_PASSWORDon./android/gradle.propertieswith the passwords you were prompted for.
Generate Android app on Firebase
Go to the project overview on Firebase.
Navigate to Settings > Project settings.
On the General tab, click on Add app under Your apps.
Enter your bundle ID as the Android package name and click Register app.
Download the config file and move it as instructed.
.png?sv=2022-11-02&spr=https&st=2025-10-26T23%3A38%3A43Z&se=2025-10-26T23%3A49%3A43Z&sr=c&sp=r&sig=UvLp2fDUe8IHUIUQFMVWorDvnqgbvGnzjwAzHJC2UPg%3D)
.png?sv=2022-11-02&spr=https&st=2025-10-26T23%3A38%3A43Z&se=2025-10-26T23%3A49%3A43Z&sr=c&sp=r&sig=UvLp2fDUe8IHUIUQFMVWorDvnqgbvGnzjwAzHJC2UPg%3D)
Run the app
To run the app, execute the following commands:
yarn
yarn android-whitelabel <YOURAPPID>For example, the app created on this document would use:
yarn android-whitelabel chat.rocket.whitelabelThis script uses
experimentalDebugbuild flavor. When you build your app on release mode, useexperimentalRelease.See the official documentation for more info.