Android standalone app uses wrong size app icon

This is exactly the same issue as this: https://github.com/react-community/create-react-native-app/issues/330

The icon looks very weird when APK is deployed to the device. I’m providing 1024x1024 source image which should be plenty to resize it to smaller images but all edges are pixelated as if it’s missing anti-aliasing or it’s not properly resized.

Are there any workarounds for this?

1 Like

Hey @jozan. What do you have in your app.json?

app.json

{
  "expo": {
    "name": "<snipped>",
    "description": "<snipped>",
    "slug": "<snipped>",
    "privacy": "unlisted",
    "sdkVersion": "24.0.0",
    "platforms": ["ios", "android"],
    "version": "1.0.0",
    "orientation": "portrait",
    "primaryColor": "#DE492A",
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "icon": "./assets/images/appicon-ios.png",
    "ios": {
      "buildNumber": "4",
      "bundleIdentifier": "<snipped>",
      "icon": "./assets/images/appicon-ios.png",
      "supportsTablet": false,
      "config": {
        "usesNonExemptEncryption": false
      }
    },
    "android": {
      "versionCode": 4,
      "package": "<snipped>",
      "icon": "./assets/images/appicon-android.png",
      "permissions": []
    },
    "assetBundlePatterns": ["assets/images/*"]
  }
}

appicon-android.png is 1024x1024px 32bit PNG image

Ok thanks for the information. I’ll add a task for us to take a look.

hey Jesse, happy new year! Curious if you found anything here? We’re having the same issue when submitting a 1024x1024 icon to the android play store. The edges are quite pixelated and we’ve experimented with a bunch of resolutions and sized, will really appreciate your help with this!

Hey sidbatra, happy new year to you as well! We’re still looking into this and hoping to have a solution soon, but I don’t have a timeline or anything for you. Thanks for checking in, and sorry for the inconvenience.

ok, thank you, please let me know if you need anything from our side, app binary etc for debugging, thanks!

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.