r/reactnative • u/oskarpawica • 6h ago
Question Shared Element Transitions are stable in Reanimated 4.8. What's your experience so far?
https://swmansion.com/blog/shared-element-transitions-in-reanimated-4-8-0/Hi everyone,
I'm Oskar from Software Mansion. About a week ago we released Reanimated 4.8 with stable Shared Element Transitions. They're now on by default (no more feature flags!) and I'm very eager to hear if you managed to try it already and what your experience with SET is so far!
In case you missed it, a quick summary of what landed:
- Transitions animate the actual shared view itself (not a copy/snapshot), so live content like videos stays continuous
- Use
sharedTransitionTag+SharedTransitionBoundary- works with any navigator or even no navigator at all - Customize with
sharedTransitionStyle(duration, spring,fadeContent(), custom worklets, progress animations, etc.) - Better support for native stacks, modals, sheets, back gestures, scrolled lists, and more.
The blog post linked above may give you more details if you're interested!
Docs: https://docs.swmansion.com/react-native-reanimated/docs/shared-element-transitions/overview/
Have you tried them yet? What worked well and did something feel off? Did the new customization options solve something for you? And what use cases are you most excited about, or perhaps still blocked on? All feedback helps!
Thanks a lot and enjoy!
4
u/Russel-D-Souza 5h ago
Haven't shipped it yet, but animating the real view instead of a snapshot is huge for video and images. Curious how it behaves with Expo Router's native stack, especially when you interrupt a swipe-back halfway, and on low-end Android.
3
u/titozzz 5h ago
Not used yet but can't wait !