During the development of my most recent app. I realized the
React Native docs
do not cover how to add an app icon. I love the little android icon as much as
the next person but we need our own logo.
Here we have opted to not use Android Studio as it may want to fiddle with
our gradle configs.
Upload your image to
Android asset Studio.
Pick whatever effects you’d like to apply. The tool generates a zip file for
you. Click Download .Zip.
Unzip the file on your machine. Then drag over the images you want to your
/android/app/src/main/res/ folder. Make sure to put each image in the right
subfolder mipmap-{hdpi, mdpi, xhdpi, xxhdpi, xxxhdpi}.
Do not (as I originally did) naively drag and drop the whole folder over your
res folder. As you may be removing your /res/values/{strings,styles}.xml
files altogether.
You’ll get this error
If you need help solving your business problems with
software read how to hire me.