Skip to content

feat(ios): Tabs.Screen can prewarm its bar items before its first visit (t3.57) - #13

Merged
juliusmarminge merged 1 commit into
t3/mainfrom
t3/prewarm-hidden-tabs
Nov 16, 2026
Merged

juliusmarminge merged 1 commit into
t3/mainfrom
t3/prewarm-hidden-tabs

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

On iOS 26, bar items fade in over ~14 frames the first time they enter a window, so a tab's first visit showed its buttons blurring in. This isn't a CAAnimation, and neither performWithoutAnimation nor setAnimationsEnabled:NO suppresses it.

The new iOS prop prewarmRequest puts a tab that hasn't been shown into the window for 0.4s, behind the selected one, with no appearance events. Each new positive value prewarms again, because items rebuilt later fade in on their own first entry. A request that arrives while the tab is already in the window restarts the 0.4s timer.

Stacked on #12. Used by pingdotgg/t3code (follow-up to #37083).

🤖 Generated with Claude Code

Note

Add prewarmRequest prop to Tabs.Screen for iOS bar item prewarming

  • Adds an iOS-only numeric prewarmRequest prop to TabsScreenPropsIOS (default 0), wired through TabsScreen.ios.tsx to the native component as an Int32 Fabric prop. A new positive value triggers a prewarm request; the value must change to request again.
  • Implements RNSTabBarController.prewarmScreenController:. It temporarily inserts the unselected screen's view behind the selected content, sized to the host bounds with accessibility elements hidden, then removes it and unhides accessibility after 0.4 seconds unless the screen became selected. A generation counter keyed by weak controller references invalidates earlier cleanup requests.
  • Behavioral Change: prewarmed views are briefly added to the view hierarchy with hidden accessibility elements, then removed after 0.4s; check prewarmScreenController in RNSTabBarController.mm.

Macroscope summarized 07c3fcb.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 6ce541ae-c826-455d-a677-394c44923c73

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment thread ios/tabs/host/RNSTabBarController.mm Resolved
@juliusmarminge
juliusmarminge changed the base branch from t3/tab-switch-without-animation to t3/main November 16, 2026 00:51
@juliusmarminge
juliusmarminge merged commit 2204e74 into t3/main Nov 16, 2026
3 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.

1 participant