React Native 添加APP图标

stackoverflow

for IOS:

  • you should set AppIcon in Images.xcassets.
  • you should upload 9 different size icons 29pt 29pt*2 29pt*3 40pt*2 40pt*3 57pt 57pt*2 60pt*2 60pt*3. picture for setting Images.xcassets

for Android:

  • put ic_launcher.png to folder [PrjDir]/android/app/src/main/res/mipmap-*.
  • 72*72 ic_launcher.png to mipmap-hdpi.
  • 48*48 ic_launcher.png to mipmap-mdpi.
  • 96*96 ic_launcher.png to mipmap-xhdpi.
  • 144*144 ic_launcher.png to mipmap-xxhdpi.

比较简单的:
http://makeappicon.com/上传图片(1536x1536)生成,会有ios和安卓的
ios: 复制AppIcon.appiconset到 myProject->ios->myProject->Images.xcassets
android: 复制生成的那一堆文件到 myProject->android->app->src->main->res

Comments
Write a Comment