Android Standalone App Splash screen sizes [SOLVED]


#1

Hello Forum,

I would like to know how best to set android splash screen in app.json.

{
  "expo": {
    "name": "with-app",
    "slug": "with-app",
    "privacy": "unlisted",
    "sdkVersion": "32.0.0",
    "version": "1.0.0",
    "orientation": "portrait",
    "primaryColor": "#cccccc",
    "icon": "./assets/icons/app.png",
    "splash": {
      "backgroundColor": "#f91447",
      "resizeMode": "contain",
      "image": "./assets/images/splash.png",
      "tabletImage": "./assets/images/splash.png",
      "hideExponentText": true,
    },
    "ios": {
      "splash": {
        "backgroundColor": "#f91447",
        "resizeMode": "contain",
        "image": "./assets/images/splash.png",
        "tabletImage": "./assets/images/splash.png",
        "hideExponentText": true,
      },
      "supportsTablet": true
    },
    "android": {
      "splash": {
        "backgroundColor": "#f91447",
        "resizeMode": "contain",
        "ldpi": "./assets/images/splash_ldpi.png",
        "mdpi": "./assets/images/splash_mdpi.png",
        "hdpi": "./assets/images/splash_hdpi.png",
        "xhdpi": "./assets/images/splash_xhdpi.png",
        "xxhdpi": "./assets/images/splash_xxhdpi.png",
        "xxxhdpi": "./assets/images/splash_xxxhdpi.png",
        "hideExponentText": true
      }
    },
    "scheme": "expo.examples.with-app"
  }
}

Do we need 3 “splash” settings in app.json? If so, what purpose does the outside “splash” property serve?

Also can someone give typical portrait mode image sizes for android splash screens dpi? I saw these on stackoverflow but they are not working correctly. https://stackoverflow.com/questions/10574363/android-splash-screen-image-sizes-to-fit-all-devices/34726279#34726279

image

My android splash screen shows but it’s huge and distorted. So I figure I do not have the correct size splash images or it’s pulling the wrong splash property.


#2

Noted splash screen png sizes work fine.