Issues animating items between flat lists in expo-router #6302
Unanswered
oddanderson
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Here is the crash log
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Project details
I am able to successfully animate views using Animated.View sharedTransitionTag for the following situations:
However, the following isn't working
The app crashes however when I use sharedTransitionTag on an item in both source and destination screens.
Here are two videos demonstrating.
In the first video, the text that transitions is inside a FlatList item. However, the text on the destination screen is static and manually added to the screen.
In the second video, the card is inside a FlatList item on both source and destination screens. The animation "works" but after transitioning back to the source screen, the app becomes unresponsive and eventually crashes.
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-07-21.at.08.30.36.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-07-21.at.08.29.37.mp4
My code is very simple, I am just using
I have verified that no items are duplicated in the FlatList, and I am also using expo-router, so I'm not able to use
react-navigation-shared-element
or creating a custom stack navigator with shared elements.Beta Was this translation helpful? Give feedback.
All reactions