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

Implement styleTransition #6479

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open

Implement styleTransition #6479

wants to merge 44 commits into from

Conversation

Latropos
Copy link
Contributor

@Latropos Latropos commented Sep 3, 2024

Summary

Style transition vs layout transition

The layout transition is a feature of reanimated that allows to transform each layout change into smooth animation. Analogously, a style transition will be generalisation of the layout transition - it animates any style change.

Recordings

IOSANDROID
Screen.Recording.2024-09-19.at.13.26.38.mov

Test plan

@Latropos Latropos changed the title style transition Implement first working PoC of style transitions Sep 12, 2024
@Latropos Latropos marked this pull request as ready for review September 12, 2024 15:25
@Latropos Latropos changed the title Implement first working PoC of style transitions Implement full snapshot Sep 18, 2024
@Latropos Latropos changed the title Implement full snapshot Implement styleTransition Sep 19, 2024
packages/react-native-reanimated/src/animationBuilder.tsx Outdated Show resolved Hide resolved
@@ -684,40 +744,77 @@ void LayoutAnimationsProxy::startExitingAnimation(

void LayoutAnimationsProxy::startLayoutAnimation(
Copy link
Member

Choose a reason for hiding this comment

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

How about introducing a new method called startLayoutTransition? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean startStyleTransition or do you think of renaming all the stuff related to layout Transitions to use naming LayoutTransition instead of LayoutAnimation?

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.

2 participants