Repository navigation
Add a dark iOS app icon - #2987
Merged
Merged
Conversation
Contributor
Author
|
CI triage: all checks and test shards passed except the Linux desktop AppImage lifecycle smoke. The AppImage packaged successfully, but the unrelated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The Expo app supplied only the top-level light icon, so Expo generated no dark-appearance entry in the iOS asset catalog. As a result, the native icon can remain a black mark on a white tile when the iPhone Home Screen changes to its dark appearance, unlike the installed PWA icon treatment.
What changed
ios.iconlight/dark pair. The light path keeps the current app icon, and the dark path gives Expo an appearance-specific source.apps/mobile/assets/icon-dark.png, a 1024×1024 white luminance mask on transparency derived from the current light icon. It preserves the current mark geometry and lets the system-provided dark background show through.References:
ios.iconfor light, dark, and tinted variantsHow you verified
npx expo prebuild --platform ios --no-install. Expo generated an opaque[email protected]and a transparent[email protected];Contents.jsontagged the latter withappearance: luminosity,value: dark.npx -y [email protected] exec turbo run typecheck lint test --filter=@bb/mobile --force: all six Turbo tasks passed and all 326 mobile tests passed. Lint reported four existing React warnings and no errors.I could not perform the final SpringBoard check because this environment is Linux and I do not control the project TestFlight release. Maintainer verification requested: please install a preview/TestFlight build on iOS 18 or later, leave Home Screen icon appearance on Automatic, switch the phone between Light and Dark, and confirm the Home Screen, Settings, and Search icon treatments. Adding the
mobile-e2elabel will also exercise the Release simulator build path.Fixes #