GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): iOS status bar icons follow the app theme by vprashar2929 · Pull Request #43003 · pingdotgg/t3code

Conversation

@vprashar2929

@vprashar2929 vprashar2929 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Problem

On iOS, the status bar icons (time, Wi-Fi, battery) don't follow the app theme. On my iPhone, with T3 Code in its light theme, they are white and nearly invisible (screenshot below).

#38045 added UIViewControllerBasedStatusBarAppearance: true, so iOS asks view controllers for the status bar style, and react-native-screens forwards that to the top RNSScreen. The <StatusBar barStyle> in App.tsx no longer takes effect on iOS. A screen without statusBarStyle uses auto, which reads UITraitCollection.currentTraitCollection rather than the app theme, so the icons can follow the phone's light or dark mode instead of Settings > Appearance.

From the code, this should reproduce with an iPhone in Dark mode and Settings > Appearance > Light, and in reverse with Dark on a Light-mode iPhone.

Change

  • Root stack screens set statusBarStyle from the navigation theme on iOS: light for a dark theme, dark for a light one.
  • Screens in nested stacks set no style of their own, so react-native-screens falls back to the root screen that hosts them.
  • Android is unchanged. The <StatusBar> in App.tsx still sets the style there.

Scope

No issue: this is a small fix for an obvious visual regression. One file, +3/−1, with no native, setting or dependency change.

Verification

  • I traced the style lookup in react-native-screens 5.0.0-t3.63: the childViewControllerForStatusBarStyle forwarding in UIViewController+RNSLegacyForwarding.mm, preferredStatusBarStyle and findChildVCForConfigAndTrait in RNSScreen.mm, and the auto mapping in RNSScreenWindowTraits.mm.
  • React Navigation's useDescriptors passes the container's theme to screenOptions and re-runs it when the theme changes, and RNSScreen refreshes the status bar when statusBarStyle changes, so switching the theme in Settings should update the icons too.
  • vp run check:changed passes.

Not checked: I couldn't run this on a simulator or device because I don't have Xcode, so there is no after screenshot. If a mobile preview build would help, the cases to check are Light on a Dark-mode iPhone, Dark on a Light-mode iPhone, and System in both modes.

Before (my iPhone, light theme):

Written by Claude Opus 5.5 in Claude Code, run from T3 Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 25, 2026
@vprashar2929 @claude
fix(mobile): iOS status bar icons follow the app theme
f4a2995
Since pingdotgg#38045 turned on view-controller-based status bar appearance,
react-native-screens answers iOS status bar queries, so the StatusBar
style set in App.tsx never reaches the system. The screens' automatic
style follows the phone's light or dark mode instead of T3 Code's
theme, so the light theme on a dark-mode iPhone gets white status bar
icons.

Root stack screens now set statusBarStyle from the navigation theme on
iOS. Nested stacks inherit it from the screen that hosts them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vprashar2929
vprashar2929 force-pushed the fix/ios-status-bar-theme branch from cc170a2 to f4a2995 Compare November 25, 2026 18:40
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The mobile navigator now sets the iOS status-bar style based on the navigation theme. Android destination animation selection remains unchanged.

Changes: iOS Status Bar Theme

Layer / File(s) Summary
Theme-based status-bar style
apps/mobile/src/Stack.tsx
The screen options callback receives the navigation theme. On iOS, it sets statusBarStyle to "light" for dark themes and "dark" otherwise.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Suggested reviewers: maria-rcks, juliusmarminge

Merge Risk: Minimal · up to f4a29

This change makes iOS status bar icons follow the app's appearance setting instead of the phone's. No concrete risk was found, though it was not tested on a simulator or device.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(mobile): iOS status bar icons follow the app theme" matches the main change. The PR sets statusBarStyle from the navigation theme on root stack screens, so iOS status bar icons follow t…
Description check Passed The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each is filled in with specific content. The Problem section gives the expected behavior …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(mobile): iOS status bar icons follow the app theme" matches the main change. The PR sets statusBarStyle from the navigation theme on root stack screens, so iOS status bar icons follow the app theme. It uses a conventional commit prefix and names the platform and the behavior.

Full details: Description check

Explanation

The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each is filled in with specific content. The Problem section gives the expected behavior and reproduction conditions. The Change section explains the iOS-only fix and that Android is unchanged. The Scope section explains why no issue is linked, which the template allows for a small fix of an obvious bug. The Verification section lists the code paths traced and states that no simulator or device run occurred, and it lists the cases left unverified. The before screenshot is still a placeholder, and the template asks for before/after screenshots for UI changes. The after screenshot is missing and the author explains why. The model attribution line is present.

Resolution

Optional: attach the before screenshot in place of the placeholder comment. A maintainer or a preview build can supply the after screenshot for the Light-on-Dark, Dark-on-Light, and System cases.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 9ea5044
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a07c4426-871f-44f9-ae33-7aa4eaf0e0e6
Commits

Reviewing files that changed from the base of the PR and between 9ea5044 and f4a2995.

Files selected for processing: 1

  • apps/mobile/src/Stack.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge

juliusmarminge commented Nov 25, 2026

Copy link
Copy Markdown
Member

Thanks for this. Before a bug fix is taken further, the bug is reproduced on current main, and here it did not appear.

I ran current main (9ea5044) on an iPhone 18 Pro simulator on iOS 27.2 and followed your steps. With iOS in Dark mode and Settings > Appearance set to Light, the time, Wi-Fi and battery icons were dark and easy to read on Home, Settings, Appearance and an open thread, and they stayed that way after a full relaunch. With iOS in Light mode and the app set to Dark, the icons were white on every one of those screens. On System they followed the device in both modes, and they changed straight away when I switched the theme with the app open.

I think main already handles this because the app applies its theme with Appearance.setColorScheme. On iOS that overrides the window's interface style, so the status bar's automatic style already reads the app's theme rather than the phone's. That is why setting the root stack's statusBarStyle doesn't seem to change anything here.

This was a simulator, not a physical iPhone. If you still see white icons on the light theme on your phone, please share the screenshot (the PR body only has a placeholder), along with your iOS version and whether you are on the App Store build or a dev client, and we will look again.

Closing this pull request. If it still happens for you, please open an issue with the exact steps, what you see, and the version and platform you are on; a fix is picked up from there.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Nov 25, 2026
@vprashar2929

vprashar2929 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for checking, and sorry for the noise. My phone runs the App Store build, 2.3.0, on iOS 27.2.1, with the iPhone in Dark mode and T3 Code set to Light. That build is from Nov 10, before #38045 changed how iOS styles the status bar, so it isn't the code you tested on main. I'll check again once the next App Store version is out and open an issue if the icons are still white.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 27, 2026
[Bug]: iOS status bar icons follow the phone's appearance instead of the app theme #44159
Closed
fix(mobile): iOS status bar icons follow the app theme in release builds #44161
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@vprashar2929 @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.