Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo splashScreen not changing

So I'm building an app apk file with expo, and I'm pointing to my splashscreen images on app.json.

    {
  "expo": {
    "name": "D&D Monster Reference",
    "slug": "dnd-monster-reference",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "mdpi": "./assets/splashScreen/splash-port-mdpi.png",
      "ldpi": "./assets/splashScreen/splash-port-ldpi.png",
      "hdpi": "./assets/splashScreen/splash-port-hdpi.png",
      "xhdpi": "./assets/splashScreen/splash-port-xhdpi.png",
      "xxhdpi": "./assets/splashScreen/splash-port-xxhdpi.png",
      "xxxhdpi": "./assets/splashScreen/splash-port-xxxhdpi.png",
      "resizeMode": "cover"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "package": "com.example.example",
      "versionCode": 1
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

But when I install the app, I get this default image as my splashcreen.enter image description here

Am I doing something wrong here? I haven't found anything about it on expo docs.

like image 386
LGimenez Avatar asked Sep 14 '25 22:09

LGimenez


2 Answers

After running npx expo prebuild, it should work!

If you want to find out more, here is the link to the youtube. https://www.youtube.com/watch?v=coJxbYQTFfk

like image 124
Hyo Jang Avatar answered Sep 17 '25 14:09

Hyo Jang


I have had this issue too on managed workflow. How I solve it is to rename the new splash image. Any name apart from "splash" will do. I usually name mine "splashscreen".

I have noticed that if you don't do this and simply name the new splashscreen by the name "splash", your app will continue to show the old (default) splash even if you restart your server and clear cache and no matter how many times you reload your app. I don't know why. Maybe it is a bug that Expo team will resolve someday.

Let us know if this works for you. It works for me 100%.

like image 22
AnatuGreen Avatar answered Sep 17 '25 12:09

AnatuGreen