cherry-pick(4.5-stable): restore opacity for flaky entering animations under Reduce Motion on iOS (#9772)#9805
Merged
Conversation
…n on iOS (#9772) ## Summary Fixes #9771. On iOS, a view with an `entering` animation stays invisible (stuck at the temporary `opacity: 0`) when Reduce Motion is enabled and `ENABLE_SHARED_ELEMENT_TRANSITIONS` is disabled. The legacy proxy temporarily sets a newly entering view's opacity to 0 and restores it once the animation progresses. #9621 started skipping ongoing-animation updates for settled animations. Under Reduce Motion the entering animation settles in the same frame, so its opacity-restore update is dropped and the view never becomes visible. Android is unaffected because the `restoreOpacityInCaseOfFlakyEnteringAnimation` safety net is gated `#ifdef ANDROID`. This keeps applying the pending opacity for a settled entering animation whose opacity hasn't been restored yet. Only entering animations carry an opacity value, and on the normal path that value is cleared once the view mounts, so regular entering and exiting animations are unaffected. ## Test plan 1. Enable Reduce Motion on an iOS simulator. 2. Set `ENABLE_SHARED_ELEMENT_TRANSITIONS: false` in the reanimated `staticFeatureFlags`. 3. Render a view with an entering animation: ```tsx <Animated.View entering={FadeIn}> <Text>This text should be visible</Text> </Animated.View> ``` Before: the view is invisible. After: the view is visible. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> (cherry picked from commit 22fd8f8)
wisniewskij
approved these changes
Jul 1, 2026
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.
Summary
Cherry-picking for Reanimated 4.5.1 release