Skip to content

Add a dark iOS app icon - #2987

Merged
SawyerHood merged 1 commit into
get-bb:mainfrom
salemsayed:fix/mobile-dark-app-icon
Sep 3, 2026
Merged

SawyerHood merged 1 commit into
get-bb:mainfrom
salemsayed:fix/mobile-dark-app-icon

Conversation

@salemsayed

Copy link
Copy Markdown
Contributor

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

  • Added an explicit ios.icon light/dark pair. The light path keeps the current app icon, and the dark path gives Expo an appearance-specific source.
  • Added 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.
  • Android and splash assets are unchanged. There are no wire, CLI, SDK, guide, or host-daemon protocol changes.

References:

How you verified

  • Ran npx expo prebuild --platform ios --no-install. Expo generated an opaque [email protected] and a transparent [email protected]; Contents.json tagged the latter with appearance: luminosity, value: dark.
  • Verified both sources are 1024×1024 sRGB PNGs, the dark source has alpha from 0 through 1, and compositing it on black is pixel-identical to the luminance inverse of the current light icon.
  • Ran 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-e2e label will also exercise the Release simulator build path.

Fixes #

AGENT GENERATED

@salemsayed

Copy link
Copy Markdown
Contributor Author

CI triage: all checks and test shards passed except the Linux desktop AppImage lifecycle smoke. The AppImage packaged successfully, but the unrelated @bb/desktop#smoke:appimage-lifecycle step reported The owned runtime exited before bb became ready. The macOS package smoke passed. I attempted to rerun the failed job, but contributors do not have repository-admin permission to do so. Please rerun that job when reviewing, and please add the mobile-e2e label or test a preview/TestFlight build for the requested SpringBoard light/dark verification.

@SawyerHood
SawyerHood merged commit 605c684 into get-bb:main Sep 3, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants