1. 28
    Change the App Icon for React Native Apps on Android
    1m 31s

Change the App Icon for React Native Apps on Android

Chris Achard
InstructorChris Achard
Share this video with your friends

Social Share Links

Send Tweet

We’ll replace the default App Icon on Android with a custom app icon image.

Instructor: [00:00] To change the app icon for Android, we can see the current icons by going to android/app/source/main/res and then looking in these folders with the different resolutions.

[00:12] Instead of generating the different sizes by hand, let's go to the Android Asset Studio and select Launcher icon generator. Select the 1024x1024 pizza icon. We'll set the padding to 0percent and the background color to white.

[00:34] Then we can download all the images. We'll unzip the download, copy all the different-sized folders, delete the old app icon folders, and paste in the new ones. Then we can make sure to uninstall the app from the emulator before building it again and launching with react-native-run-android.

[01:13] Once it launches, we can close the app, find the app on the device, and verify the app icon has changed. Notice that unlike iOS, Android supports transparent backgrounds for app icons. We could have used a transparent background instead of a white one here.