Shared Element Transition does not take current scale into account #5475
Labels
Area: Shared Element Transitions
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
Hey all!
I've noticed a small bug in Shared Element Transitions, where the Animation does not take the current scale into account. See this video recording:
RPReplay_Final1701958592-2.mp4
You might want to watch this in QuickTime and go through this frame by frame - but as you can see I drag down the view to this scale:
...where it should start animating from. If we go to the next frame, we can see that the animation does not start at that scaled down state, but rather at the original scale:
...and then just scales down from that to it's target position.
It does work for the translation (it starts at the correct originY and originY), but not for scale. Both translation and scale are passed in the same parent view's style.
Steps to reproduce
Snack or a link to a repository
https://github.com/mrousavy/react-native-reanimated/tree/repro/shared-element-transition-bugs
Reanimated version
3.6.1
React Native version
0.72.7
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
Real device
Device model
iPhone 11 Pro
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: