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
Published 6 years ago
Updated 4 years ago

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.

egghead
egghead
~ 26 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today