Repository navigation
fix: disconnect AnimatedProps before attaching a new native view - #59099
Merged
meta-codesync[bot] merged 2 commits intoNov 2, 2026
Merged
meta-codesync[bot] merged 2 commits into
meta-codesync[bot] merged 2 commits into
Conversation
Contributor
Author
|
Hey @cipolleschi 👋 Would it be possible to have a look on this PR? Or tag a person who knows |
Contributor
Author
|
Hey @tomekzaw Maybe you can review this PR? Or someone from SWM? I know that Or maybe you know whom I should tag here to bring this PR to attention?.. |
Contributor
|
Hey @kirillzyusko, I asked @bartlomiejbloniarz to take a look |
Contributor
Author
|
Thank you @tomekzaw ❤️ |
|
@bartlomiejbloniarz has imported this pull request. If you are a Meta employee, you can view this in D128344147. |
bartlomiejbloniarz
approved these changes
Nov 2, 2026
Collaborator
|
This pull request was successfully merged by @kirillzyusko in 856661f When will my fix make it into a release? | How to file a pick request? |
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:
When an animated component replaces its underlying native view,
AnimatedProps.setNativeView()connects the existing animated props node to the replacement without disconnecting the previous view. On Android, this causes a crash:Disconnect the previous target before connecting the replacement.
Changelog:
[ANDROID] [FIXED] - Prevent native Animated crashes when an animated component replaces its underlying native view.
Test Plan:
You can use this code to reproduce a crash:
before.mp4
after.mp4