Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Change the App Icon for React Native Apps on Android

    Chris AchardChris Achard
    react-nativeReact Native
    javascriptJavaScript
    androidAndroid

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

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss

    Transcript

    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.