Skip to content

fix(ios): respect disablePageAnimations during tab switches - #610

Open
LeleDallas wants to merge 1 commit into
callstack:mainfrom
LeleDallas:fix/ios-disable-page-animations
Open

LeleDallas wants to merge 1 commit into
callstack:mainfrom
LeleDallas:fix/ios-disable-page-animations

Conversation

@LeleDallas

Copy link
Copy Markdown

PR Description

Note

This PR fixes disablePageAnimations not being respected when switching tabs on iOS versions earlier than 26.

The flag is now forwarded to the UITabBarControllerDelegate, which provides a zero-duration transition when animations are disabled.
When the flag is false, UIKit's default transition behavior is preserved.
This replaces the iOS workaround that temporarily disabled animations globally through UIView.setAnimationsEnabled, keeping the change scoped to tab transitions.

How to test?

  • Build and run the example app on an iOS simulator running a version earlier than 26, such as iOS 18;
  • Open the example using <FourTabs disablePageAnimations />;
  • Switch between tabs repeatedly and verify that the content changes immediately, without a transition animation or blank screens;
  • Open the regular <FourTabs /> example and verify that default transition behavior is preserved;
  • Repeat on iOS 26 or later to check for regressions.

Screenshots

Master Current patch
Screen.Recording.2026-10-30.at.10.26.56.mov
Screen.Recording.2026-10-30.at.10.27.45.mov

This branch has not been deployed

No deployments
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