Edit this page
Learn how to add a splash screen and app icon to your Expo project.
A splash screen and an app icon are fundamental elements of a mobile app. They play an important role in the user experience and branding of the app. This guide provides steps on how to create and add them to your app.
See a detailed walkthrough on how to create an app icon and splash screen for an Expo project.
This section uses thesplash
property from the app config. Starting SDK 52, usingexpo-splash-screen
config plugin is recommended because using a full screen splash image on Android 12+ will not work so the following information for Android is outdated. Seeexpo-splash-screen
reference on how to use the config plugin and for up-to-date information.
A splash screen, also known as a launch screen, is the first screen a user sees when they open your app. It stays visible while the app is loading. You can also control the behavior of when a splash screen disappears by using the native SplashScreen API.
The default splash screen in an Expo project is a blank white screen. It can be customized using the splash
property in the project's app config using the steps below.
1
To create a splash image, you can use this Figma template. It provides a bare minimum design for an icon and splash images for Android and iOS.
Android screen sizes vary greatly with the massive variety of devices. See Material Design blog post for more information on how to find the right device metrics for any screen.
Expo's Splash Screen API will resize the image for your app depending on the size of the device's screen. You can specify the strategy used to resize the image with splash.resizeMode
. See the Device screens and sizes specifications from the iOS Human Interface Guidelines for an up-to-date list of screen sizes.
2
After creating a splash screen, export it as a .png and save it in the assets/images directory. By default, Expo uses splash.png as the file name. If you decide to change the name of your splash screen file, make sure to use that in the next step.
Note: Currently, only .png images are supported to use as a splash screen in an Expo project. If you use another image format, making a production build of your app will fail.
3
Open the app config and add the local path as the value of splash.image
property to point to your new splash image.
{
"splash": {
"image": "./assets/images/splash.png"
}
}
You can test your new splash image by starting the development server with npx expo start
and using a development build or Expo Go to preview it.
Note: In development mode, when you test your new splash screen, you will notice an information bar at the bottom of the screen. It displays the information about how much of the JavaScript code is downloaded on the device when preparing your app. It doesn't appear in production apps.
4
If you set a background color other than white for your splash image, you may see a white border around it. This is due to the splash.backgroundColor
property that has a default value of #ffffff
.
You can update this property's value to match your splash image's background color. For example:
{
"splash": {
"image": "./assets/images/splash.png",
"backgroundColor": "#FEF9B0"
}
}
5
Any splash image you provide gets resized to maintain its aspect ratio and fit the resolution of the user's device.
You can use two properties for resizing: contain
(default) and cover
. These properties work similar to the resizeMode
in React Native <Image>
, as demonstrated below:
Applying this to an example:
{
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "cover"
"backgroundColor": "#FFFFFF"
}
}
In the above example, the image is stretched to fill the entire width while maintaining the aspect ratio. This is why the logo on the splash image is larger when resizeMode
is set to contain
.
splash
properties separately for Android and iOSYou can configure any splash
properties for a native platform using splash.android
and splash.ios
to use a platform-specific option:
mdpi
to xxxhdpi
.ios.splash.tabletImage
to have a different splash image on iPads.If your app does not use Expo Prebuild (formerly the managed workflow) to generate the native android and iOS directories, then changes in the app config will have no effect. For more information, see how you can customize the configuration manually.
On Android, the splash screen behaves in most cases the same as on iOS. However, there is a slight difference. In this scenario, extra attention should be paid to android.splash
section configuration inside app.json.
Depending on the resizeMode
you will get the following behavior on Android:
contain
mode will initially display only the background color, and when the initial view hierarchy is mounted then splash.image
will be displayed.splash.image
will be used as the xxxdpi
resource. It's up to you to provide graphics that meet your expectations and fit the screen dimension. To achieve this, use different resolutions for different device DPIs such as from mdpi
to xxxhdpi
.In iOS development builds, launch screens can sometimes remain cached between builds, making it harder to test new images. Apple recommends clearing the derived data folder before rebuilding, this can be done with Expo CLI by running:
-
npx expo run:ios --no-build-cache
See Apple's guide on testing launch screens for more information.
An app's icon is what your app users see on their device's home screen and app stores. Android and iOS have different and strict requirements.
1
To create an app icon, you can use this Figma template. It provides a bare minimum design for an icon and splash images for Android and iOS.
2
After creating an app icon, export it as .png and save it in the assets/images directory. By default, Expo uses icon.png as the file name. If you decide to use its file name, make sure to use that in the next step.
3
Open the app config and add the local path as the value of icon
property to point it to your new app icon:
{
"icon": "./assets/images/icon.png"
}
Further customization of the Android icon is possible using the android.adaptiveIcon
property, which will override both of the previously mentioned settings.
The Android Adaptive Icon is formed from two separate layers — a foreground image and a background color or image. This allows the OS to mask the icon into different shapes and also supports visual effects. For Android 13 and later, the OS supports a themed app icon that uses a wallpaper and theme to determine the color set by the device's theme.
The design you provide should follow the Android Adaptive Icon Guidelines for launcher icons. You should also:
android.adaptiveIcon.foregroundImage
property to specify the path to your foreground image.android.adaptiveIcon.monochromeImage
property to specify the path to your monochrome image.android.adaptiveIcon.backgroundColor
property. You can instead specify a background image using the android.adaptiveIcon.backgroundImage
property. Make sure that it has the same dimensions as your foreground image.You may also want to provide a separate icon for older Android devices that do not support Adaptive Icons. You can do so with the android.icon
property. This single icon would be a combination of your foreground and background layers.
See Apple best practices to ensure your icon looks professional, such as testing your icon on different wallpapers and avoiding text beside your product's wordmark. Provide an icon that's at least 512x512 pixels.
For iOS, your app's icon should follow the Apple Human Interface Guidelines. You should also:
npx create-expo-app
, EAS Build will generate the other sizes for you. In case of a bare React Native project, generate the icons on your own. The largest size EAS Build generates is 1024x1024.