-
-
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
[SET] Fix transition restart #4947
Conversation
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.
I don't understand all the changes but it seems ok. I'd like to improve code quality for some of the places that I mentioned.
src/reanimated2/layoutReanimation/sharedTransitions/ProgressTransitionManager.ts
Outdated
Show resolved
Hide resolved
src/reanimated2/layoutReanimation/sharedTransitions/ProgressTransitionManager.ts
Outdated
Show resolved
Hide resolved
src/reanimated2/layoutReanimation/sharedTransitions/ProgressTransitionManager.ts
Show resolved
Hide resolved
src/reanimated2/layoutReanimation/sharedTransitions/ProgressTransitionManager.ts
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/reanimated/layoutReanimation/SharedTransitionManager.java
Outdated
Show resolved
Hide resolved
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.
I didn't understand anything from this PR so I've QA it instead
On main
the app crashes when a Shared Transition is interrupted by the user or programmatically
With this PR applied the transition snaps to the final stage without crashing
lgtm
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.
🪨
Summary
This PR fixes the issue with shared element transition restart. Previously, there was a chance of the app crashing or a needed component disappearing. The purpose of this PR is to prevent app crashes and ensure a proper end state for the transition.
Test plan
Run example
TransitionRestart.tsx
example - available in this PR