O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding an app icon for Android

In order to give your Android app an icon, we're going to navigate to the following folder in our repo: android/app/src/main/res.

Then, add an icon image renamed ic_launcher.png to each of the four folders with the corresponding dimensions:

  • mipmap-hdpi: 72 × 72
  • mipmap-mdpi: 48 × 48
  • mipmap-xhdpi: 96 × 96
  • mipmap-xxhdpi: 144 × 144

Once you've added these images, run the react-native run-android command to build your app, and you should see the icons updated on the home screen of your Android Virtual Device.

For your convenience, app icons for the Android version of Friends have been made available in the repo pertaining to this chapter's code.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required