The app icon is the image people tap on the home screen, and in an Expo project it starts as one entry in app config. Most of the work is preparing the right image files, because Android and iOS both go beyond a single square: Android masks the icon into the shape the device uses, and iOS can swap it when the user picks a dark or tinted appearance.
Key terms
icon: the top-level app config key that holds a local path or remote URL to the app icon, shown on the home screen and inside Expo Go.- Adaptive icon: an Android icon built from a foreground image and a background color or image, which the OS masks into different shapes.
monochromeImage: the monochrome version of the adaptive icon that Android 13+ shows when the user turns on Themed icons in system settings.- Icon Composer: Apple's app for designing app icons, which exports a
.icondirectory.
The top-level icon key
icon takes a string, either a local path or a remote URL. Use a 1024x1024 PNG. Save the exported file in assets/images as icon.png, the name Expo uses by default, and you won't need to touch the config, because a project made from the default template already points there:
json"icon": "./assets/images/icon.png"
That one key covers both platforms. Each platform also has keys of its own that win when you set them: android.icon, android.adaptiveIcon.foregroundImage and ios.icon all override the top-level icon. Treat icon as the fallback and add a platform key only where a platform needs something different.
Android: a foreground layer and a background
An adaptive icon is split into two layers: a foreground image and a background behind it, either a color or a second image. Keeping the layers apart is what lets Android mask the icon into different shapes and apply visual effects to it. You configure it under android.adaptiveIcon, with PNG files for every image:
foregroundImageis the layer with your logo. It overrides bothiconandandroid.icon.backgroundColorfills the space behind the foreground and defaults to white,#FFFFFF.backgroundImagereplacesbackgroundColorand must have the same dimensions asforegroundImage.monochromeImageis shown on the home screen of Android 13+ devices when the user enables Themed icons.
Neither background key does anything unless foregroundImage is set, so a config with only a backgroundColor leaves the icon unchanged. The default template sets all four keys. For older Android devices that don't support adaptive icons, android.icon supplies a separate icon.
iOS: one file, three appearances or an Icon Composer icon
ios.icon accepts three forms, and each one overrides the top-level icon:
- A path to a PNG. Expo generates the other sizes from it, the largest being 1024x1024.
- An object with
light,darkandtintedpaths, one icon per system appearance. - A path to a
.icondirectory made in Icon Composer.
In the object form, dark is shown when the user's system appearance is dark and tinted when it is tinted. light is shown whenever no dark or tinted icon is in use or provided, which makes it the default.
A PNG for iOS has stricter rules than an Android layer. It must be exactly square, so a 1023x1024 file is not valid. It must also fill the whole square with no rounded corners or other transparent pixels, because the operating system masks the icon itself.
The icon config for a recipe app
The app.json example below gives a recipe app a fallback icon, an adaptive icon for Android and three appearance variants for iOS. The keys under android and ios decide what each home screen shows.
foregroundImage and the ios.icon object both override the top-level icon, so each platform gets the art made for it. The backgroundColor here only takes effect because foregroundImage is set next to it.
Icon Composer instead of separate files
Icon Composer exports a .icon directory. Put it in the project's assets directory and set ios.icon to its path:
json"ios": { "icon": "./assets/recipes.icon" }
Dark mode support is handled inside Icon Composer, so this form needs no separate light, dark or tinted files. Passing a .icon directory through ios.icon works in SDK 54 and later, and the default template already does it with ./assets/expo.icon.
Code Examples
{
"expo": {
"name": "Recipe Box",
"icon": "./assets/images/icon.png",
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/recipe-foreground.png",
"backgroundColor": "#FFF4E0",
"monochromeImage": "./assets/images/recipe-monochrome.png"
}
},
"ios": {
"icon": {
"light": "./assets/images/recipe-ios-light.png",
"dark": "./assets/images/recipe-ios-dark.png",
"tinted": "./assets/images/recipe-ios-tinted.png"
}
}
}
}