Repository navigation
feat(ios): Tabs.Screen can prewarm its bar items before its first visit (t3.57) - #13
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
juliusmarminge
changed the base branch from
t3/tab-switch-without-animation
to
t3/main
November 16, 2026 00:51
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.
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
performWithoutAnimationnorsetAnimationsEnabled:NOsuppresses it.The new iOS prop
prewarmRequestputs 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
prewarmRequestprop toTabs.Screenfor iOS bar item prewarmingprewarmRequestprop toTabsScreenPropsIOS(default 0), wired throughTabsScreen.ios.tsxto the native component as anInt32Fabric prop. A new positive value triggers a prewarm request; the value must change to request again.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.prewarmScreenControllerin RNSTabBarController.mm.Macroscope summarized 07c3fcb.