I
I
Ilya2019-07-23 00:08:33
React Native
Ilya, 2019-07-23 00:08:33

Why is SplashScreen not loading | Expo SDK?

For reasons that are not clear to me, splashscreen cannot be loaded on android (I have not tested it on ios yet).
The {project}/assets folder contains my splash.png.
But when the project is being built, it does not seem to see it and loads the default expo splashscreen.
I thought that this is due to the fact that the Expo SDK project got into the android res / drawable folder and wrote the following in the folder in the splash_background file : Now my splashscreen started loading, but immediately after it, the default expo splash reappears with the bundle loaded. app.json
<item android:drawable="@color/splashBackground"/>

file

{
  "expo": {
    "name": "WaterLine",
    "slug": "WaterLine",
    "privacy": "public",
    "sdkVersion": "33.0.0",
    "platforms": [
      "ios",
      "android",
      "web"
    ],
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "WaterLine",
      "publishBundlePath": "ios/waterline/Supporting/shell-app.bundle",
      "publishManifestPath": "ios/waterline/Supporting/shell-app-manifest.json"
    },
    "isDetached": true,
    "detach": {
      "iosExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/ios-v2.11.2-sdk33.0.0-76da9dd8-735b-43b3-9682-b386811f4e5f.tar.gz",
      "androidExpoViewUrl": "https://s3.amazonaws.com/exp-exponent-view-code/android-v2.11.4-sdk33.0.0-6a4f0f3e-1f1b-4c33-9155-d0237f6d7c34.tar.gz"
    },
    "scheme": "exp4844a4a8cf5b4f0cbf02b6daf2154a6a",
    "android": {
      "package": "app.ik.waterline",
      "publishBundlePath": "android/app/src/main/assets/shell-app.bundle",
      "publishManifestPath": "android/app/src/main/assets/shell-app-manifest.json"
    }
  }
}


What could be the problem ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-07-23
@ynizhenie

Problem solved.
Дело в том что когда это был еще дефолтный expo проект мне было лень заменять сплеш и иконку. Произвел expo eject и expo засетил дефолтные свои картинки во всем проекте. Решение только одно делаете новый проект закидываете заранее новые иконки и сплеш и только потом expo eject.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question