3

Here is my app.json:

{
  "expo": {
    "name": "SignLingo",
    "slug": "SignLingo",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "scheme": "myapp",
    "userInterfaceStyle": "automatic",
    "newArchEnabled": true,
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#fefaf4"
    },
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.anonymous.SignLingo"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/adaptive-icon.png",
        "backgroundColor": "#ffffff"
      },
      "package": "com.anonymous.SignLingo"
    },
    "web": {
      "bundler": "metro",
      "output": "static",
      "favicon": "./assets/images/favicon.png"
    },
    "plugins": [
      "expo-router",
      [
        "expo-splash-screen",
        {
          "image": "./assets/images/splash-icon.png",
          "imageWidth": 200,
          "resizeMode": "contain",
          "backgroundColor": "#ffffff"
        }
      ]
    ],
    "experiments": {
      "typedRoutes": true
    }
  }
}

This is my ./assets/images/icon.png enter image description here

This is my ./assets/images/splash.png enter image description here

Both ./assets/images/icon.png and ./assets/images/splash.png are present and the app icon displays as expected. However my Splash screen displays ./assets/images/icon.png instead of ./assets/images/splash.png

enter image description here

The background color "#fefaf4" is correct but I'm seeing ./assets/images/icon.png instead of ./assets/images/splash.png

Why and how to get splash image to show correctly on splash screen?

I've already tried running npx expo prebuild --clean and then npx expo prebuild but that does nothing.

1
  • Did you find any solutions? Commented Dec 27, 2024 at 21:05

2 Answers 2

1

I had the same issue using expo v52. Install expo v51 and it will work.

run: npx expo install expo@^51.0.0 and then: npx expo install --fix

Sign up to request clarification or add additional context in comments.

1 Comment

Did you find another solution? When I did downgrade everything broke
-1

Instead of creating splash screen in "app.json", do it in "app.config.js".

  1. Create a new file "app.config.js" in your project directory
  2. Add
export default {
    expo:{
        splash: {
            image: "./assets/images/splash.png",
            resizeMode: "contain",
            backgroundColor: "#fefaf4"
        }
    }
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.