Skip to content

Fix animation artifacting in RNTester example on iOS - #58675

Open
jasozh wants to merge 1 commit into
react:mainfrom
jasozh:export-D121559781
Open

jasozh wants to merge 1 commit into
react:mainfrom
jasozh:export-D121559781

Conversation

@jasozh

@jasozh jasozh commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Summary:
Prevents the RNTester examples in Animated > Transform Styles from exhibiting the issue referenced in #43763, where rotateX and rotateY show animation artifacting on iOS.

Root Cause

Fabric flattens away the parent view that would normally provide a native layer boundary. iOS Core Animation then processes the rotateX/rotateY 3D layer in the same hierarchy as sibling controls, causing incorrect depth composition and rendering artifacts.

This PR

Modify TransformStylesExample.js to add the isolation: 'isolate' style on the View wrapper so it is retained in the native stacking context. This doesn't fix the root problem but documents the root cause and a workaround until a framework fix is implemented.

Changelog: [Internal]

Differential Revision: D121559781

Summary:
Prevents the RNTester examples in Animated > Transform Styles from exhibiting the issue referenced in [react#43763](react#43763), where rotateX and rotateY show animation artifacting on iOS.

### Root Cause

Fabric flattens away the parent view that would normally provide a native layer boundary. iOS Core Animation then processes the rotateX/rotateY 3D layer in the same hierarchy as sibling controls, causing incorrect depth composition and rendering artifacts.

### This PR

Modify `TransformStylesExample.js` to add the `isolation: 'isolate'` style on the View wrapper so it is retained in the native stacking context. This doesn't fix the root problem but documents the root cause and a workaround until a framework fix is implemented.

Changelog: [Internal]

Differential Revision: D121559781
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 24, 2026
@meta-codesync

meta-codesync Bot commented Sep 24, 2026

Copy link
Copy Markdown

@jasozh has exported this pull request. If you are a Meta employee, you can view the originating Diff in D121559781.

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

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant