Splash screen shows as app background in Android


#1

So i tried to setup a splash screen in my app. It looks fine on the iOS simulator, but in Android (device), the splash screen is now set as the app screen. Is there a specific config I should use to disable this?

Here’s my app.json

{
  "expo": {
    "name": "Timer",
    "description": "Simple app timer.",
    "slug": "timer",
    "privacy": "public",
    "sdkVersion": "24.0.0",
    "platforms": ["ios", "android"],
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "primaryColor": "#ffffff",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#195ba2"
    },
    "notification": {
      "icon": "./assets/notifIcon.png",
      "color": "#00B300"
    },
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.user.timer"
    },
    "android": {
      "package": "com.user.timer"
    }
  }
}

#2

Hi - by “app screen”, do you mean that once your app has finished launching, you still continue to see the splash screen? If so, one thing you can do is make sure that your app’s root view fills the screen and has an opaque background color like so:

<View style={{ backgroundColor: 'white', flex: 1 }} />

#3

Yes, that worked. Thanks!


closed #4

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.