Skip to content

fix(reduceMotion): apply final state immediately without start-state flash - #5300

Open
EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/reduce-motion-initial-frame
Open

EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/reduce-motion-initial-frame

Conversation

@EnesKartal

Copy link
Copy Markdown
Contributor

Summary

  • Skip the intermediate start-state animation when reduceMotion is active in CrossFadeIcon, Drawer.CollapsedItem, and BottomNavigation.Bar so the first rendered frame already matches the end state:
    • CrossFadeIcon: avoid keeping previousIcon and snap fade.value = 0 instead of running a 0 ms withTiming.
    • Drawer.CollapsedItem: assign outlineScale.value directly to 1 / 0.5 when reduceMotion is enabled.
    • BottomNavigation.Bar: update tabsAnims via setValue directly in animateToIndex when reduceMotion is enabled instead of scheduling a 0 ms Animated.parallel.
  • Update CrossFadeIcon.test.tsx to verify immediate switching without withTiming when reduceMotion="on".

Verification

  • npx eslint src/components/CrossFadeIcon.tsx src/components/Drawer/DrawerCollapsedItem.tsx src/components/BottomNavigation/BottomNavigationBar.tsx src/components/__tests__/CrossFadeIcon.test.tsx (0 errors)
  • npx jest src/components/__tests__/CrossFadeIcon.test.tsx src/components/__tests__/Drawer/DrawerCollapsedItem.test.tsx src/components/__tests__/BottomNavigation.test.tsx (3 suites passed, 41 passed / 1 pre-existing skipped, 19/19 snapshots)
  • npx tsc --noEmit (0 errors)

Fixes #5298

Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • The description is too long. Please keep it under 1000 characters.
  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@Doberjohn Doberjohn added this to the 6.1.0 milestone Nov 24, 2026
@Doberjohn

Copy link
Copy Markdown
Collaborator

Thanks! 6.0 now takes only regressions and major bugs, so this is on the 6.1.0 milestone and gets its review after 6.0.0. Could you add before and after screenshots or a short video in the meantime?

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.

Reduce motion: Drawer.CollapsedItem, BottomNavigation.Bar and an animated IconButton show their start state for a few frames

3 participants