Splash Screen Not Displaying on Android After Upgrading to SDK 40

Please provide the following:

  1. SDK Version: 40.0.0
  2. Platforms(Android/iOS/web/all): Android

Hi!

I recently upgraded from SDK Version 38 to 40. My app used to have a splash screen that displayed correctly using the AppLoading component, but since the upgrade, my splash screen does not appear in the Expo Client and appears as the Expo logo in standalone builds.

I’ve already modified the import statement according to the release notes, as you can see in my code below.

App.js

// ...
import AppLoading from 'expo-app-loading';
// ...

export default function App() {

  const [fontsLoaded] = useFonts({
    // ...
  })

  if (!fontsLoaded) {
    return <AppLoading />
  } else {
    return (
      <Navigator />
    );
  }
}

app.json

{
  "expo": {
    ...
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    ...
}

How should I proceed to get my splash screen back?
Thanks!

1 Like

Hey @ahbarkun, can you provide a reproducible example of this that we can run on our end? I’m not having any issues with displaying a splash screen on a project running SDK40.

Cheers,
Adam

1 Like