r/reactnative • • 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!

15 Upvotes

4 comments sorted by

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/oskarpawica 3h ago

Thanks! Expo Router of course works here with its native stack, including the swipe-back on iOS and interrupted swipe-back. We also documented the easiest way to setup the transition boundaries for Expo Router, among other options. You may want to take a look here: Screens and boundaries | React Native Reanimated
From our testing even low-end Android devices seemed to manage here pretty well, but I'd love to see some more numbers from real world apps! Have fun with it and good luck shipping!

1

u/ChronSyn Expo 1h ago

This is exactly what I've been waiting to hear! It feels like it's been a few years since we had a working go-to element transition solution, so very excited to hear that it works with Expo Router.

Great work!

3

u/titozzz 5h ago

Not used yet but can't wait !