Change the App Icon for React Native Apps on Android
We’ll replace the default App Icon on Android with a custom app icon image.
Duration
2 min
Access
Pro
Transcript
Available
We’ll replace the default App Icon on Android with a custom app icon image.
Video Transcript
Instructor: 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.
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.
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.
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.
Duration
2 min
Access
Pro
Transcript
Available
Course lesson
Change the App Icon for React Native Apps on Android
We’ll replace the default App Icon on Android with a custom app icon image.
Access required
This lesson is available with an active egghead membership.