I am making a React Native app. I would like to customize the app icon (meaning the icon that you click on to start the app). I have Googled this, but I keep finding different types of icons that refer to different things. How do I add these types of icons to the app?
Open your ejected React Native app (the iOS version) in Xcode and locate the aforementioned Image. xcassets folder. Then drag and drop your app logo over the AppIcon image. As you can see, there are about 20 different image sizes that you need to specify.
AppIcon in Images.xcassets.29pt29pt*229pt*340pt*240pt*357pt57pt*260pt*260pt*3.Images.xcassets will look like this:

ic_launcher.png in folders [ProjectDirectory]/android/app/src/main/res/mipmap-*/.  ic_launcher.png in mipmap-hdpi.ic_launcher.png in mipmap-mdpi.ic_launcher.png in mipmap-xhdpi.ic_launcher.png in mipmap-xxhdpi.ic_launcher.png in mipmap-xxxhdpi.The latest versions of react native also supports round icon. For this particular case, you have two choices:
A. Add round icons: In each mipmap folder, add additionally to the ic_launcher.png file also a round version called ic_launcher_round.png with the same size.
B. Remove round icons: Inside yourProjectFolder/android/app/src/main/AndroidManifest.xml remove the line android:roundIcon="@mipmap/ic_launcher_round"and save it.
Otherwhise the build throws an error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With