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. png - Android splash screen image sizes to fit all devices - Stack Overflow
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.