Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Remove mutation parsing in Layout Animations #6286

Merged

Conversation

bartlomiejbloniarz
Copy link
Contributor

@bartlomiejbloniarz bartlomiejbloniarz commented Jul 17, 2024

Summary

This PR changes the way Remove mutations are parsed in LayoutAnimationsProxy::pullTransaction. Before there was an assumption that parent removals will be later on the list than removals of their children. This is not accurate when a view is reparented. This assumption meant that we could recognize "root" nodes (basically entry point for exiting animations) while processing them. Now this part of logic has to be calculated after all Remove mutations are parsed

fixes #6222

Test plan

Check [LA] examples for regresions

Copy link
Contributor

@Titozzz Titozzz left a comment

Choose a reason for hiding this comment

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

Tested locally in our app ✅

@bartlomiejbloniarz bartlomiejbloniarz added this pull request to the merge queue Jul 25, 2024
Merged via the queue into main with commit e2da22f Jul 25, 2024
12 checks passed
@bartlomiejbloniarz bartlomiejbloniarz deleted the @bartlomiejbloniarz/fix-fabric-la-remove-parsing branch July 25, 2024 15:33
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.

App is crashing when I use with react-navigation-bottom-tabs and native-stack
3 participants