Shared Element Transition not Working With Latest React Native #6630
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
I'm trying to master the concept of using shared element transitions. I've set up a very basic example which animates a view with some standard properties to animate. Then I added the layer of custom animations. I am not doing anything fancy in the custom animation, I essentially just wanted to replicate the standard behavior with a custom animation to see how it works.
Here's my example. All I have is a button that navigates to a different page, and I animate an
Animated.View
as a shared element between the two pages.Simulator.Screen.Recording.-.iPhone.15.Plus.-.2024-10-24.at.12.00.54.mp4
All of this comes from my current project where I was playing around with this. When I tried to reproduce this in a minimal repo, I installed all the latest react native things, and shared transitions weren't even working at all.
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-10-24.at.13.03.59.mp4
The example I'm going to provide is to address the fact that it is not working at all with the latest react native.
Steps to reproduce
Animate.View
Snack or a link to a repository
https://github.com/aymather/custom-shared-transitions
Reanimated version
^3.16.1
React Native version
0.76.0
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Fabric (New Architecture)
Build type
Debug app & dev bundle
Device
iOS simulator
Device model
iPhone 15 Plus
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: