-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
base: main
Are you sure you want to change the base?
Conversation
packages/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h
Outdated
Show resolved
Hide resolved
apps/common-app/src/examples/LayoutAnimations/BasicLayoutAnimation.tsx
Outdated
Show resolved
Hide resolved
...es/react-native-reanimated/src/layoutReanimation/defaultTransitions/LinearStyleTransition.ts
Outdated
Show resolved
Hide resolved
packages/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h
Outdated
Show resolved
Hide resolved
packages/react-native-reanimated/src/createAnimatedComponent/commonTypes.ts
Outdated
Show resolved
Hide resolved
packages/react-native-reanimated/src/createAnimatedComponent/createAnimatedComponent.tsx
Outdated
Show resolved
Hide resolved
packages/react-native-reanimated/src/createAnimatedComponent/createAnimatedComponent.tsx
Outdated
Show resolved
Hide resolved
packages/react-native-reanimated/src/layoutReanimation/animationBuilder/commonTypes.ts
Outdated
Show resolved
Hide resolved
packages/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/SnapshotUtils.h
Show resolved
Hide resolved
packages/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/SnapshotUtils.h
Show resolved
Hide resolved
@@ -684,40 +744,77 @@ void LayoutAnimationsProxy::startExitingAnimation( | |||
|
|||
void LayoutAnimationsProxy::startLayoutAnimation( |
There was a problem hiding this comment.
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
? 🤔
There was a problem hiding this comment.
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
?
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
Screen.Recording.2024-09-19.at.13.26.38.mov
Test plan