fix(mobile): fit the Android splash icon to its circular mask (#10620)
Co-authored-by: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
d081ab7abc
commit
892de47f06
6 files changed
+94
-27
No files matched your search
@@ -39,6 +39,7 @@ const DEVELOPMENT_ASSETS = {
|
||||
androidAdaptiveForeground,
|
||||
androidAdaptiveBackgroundColor: "#347FF8",
|
||||
androidAdaptiveBackgroundImage: "./assets/android-icon-background-dev.png",
|
||||
androidSplashIcon: "./assets/android-splash-icon-dev.png",
|
||||
androidMonochromeIcon: "./assets/android-icon-mark.png",
|
||||
androidNotificationIcon: "./assets/android-notification-icon.png",
|
||||
androidNotificationColor: "#00639B",
|
||||
@@ -51,6 +52,7 @@ const PREVIEW_ASSETS = {
|
||||
androidAdaptiveForeground,
|
||||
androidAdaptiveBackgroundColor: "#111533",
|
||||
androidAdaptiveBackgroundImage: "./assets/android-icon-background-nightly.png",
|
||||
androidSplashIcon: "./assets/android-splash-icon-nightly.png",
|
||||
androidMonochromeIcon: "./assets/android-icon-mark.png",
|
||||
androidNotificationIcon: "./assets/android-notification-icon.png",
|
||||
androidNotificationColor: "#7565C7",
|
||||
@@ -63,6 +65,7 @@ const RELEASE_ASSETS = {
|
||||
androidAdaptiveForeground,
|
||||
androidAdaptiveBackgroundColor: "#000000",
|
||||
androidAdaptiveBackgroundImage: undefined,
|
||||
androidSplashIcon: "./assets/android-splash-icon-prod.png",
|
||||
androidMonochromeIcon: "./assets/android-icon-mark.png",
|
||||
androidNotificationIcon: "./assets/android-notification-icon.png",
|
||||
androidNotificationColor: "#FFFFFF",
|
||||
@@ -339,6 +342,15 @@ const config: ExpoConfig = {
|
||||
image: variant.assets.splashIcon,
|
||||
backgroundColor: "#0a0a0a",
|
||||
},
|
||||
android: {
|
||||
// Android 12+ masks the splash icon to a circle over the central two thirds of
|
||||
// its 288dp canvas, so the iOS export's corners get cut. A full-canvas image of
|
||||
// the composed adaptive layers puts the wordmark in the same frame the launcher
|
||||
// icon uses.
|
||||
image: variant.assets.androidSplashIcon,
|
||||
imageWidth: 288,
|
||||
dark: { image: variant.assets.androidSplashIcon },
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 949 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 341 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Reference in new issue
Block a user