Reanimated 2 with Flatlists - Are there any examples? #2467
Unanswered
CallumHemsley
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I don't know if you're interested in using a library, but I'm currently using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm currently developing a "drag and sort" component that allows users to drag items within a list and re-sort in real time using
reanimated
andreact-native-gesture-handler
.Currently, my component just does a
.map()
on the array of items to display the list, with each itemstop
value being animated and changed depending on gestures and sorting. However, as we know, this is inefficient and doesn't allow for virtualization of the list. I want to convert my component to use a Flatlist for virtualization while still allowing my gesture based animations with reanimated and react-native-gesture-handler.Is this possible currently? When I've tried to achieve this I've had issues where I can't animate and change the top value of items within the list in the same way. Does anyone have any examples of animating items within a flatlist using reanimated 2?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions