Replies: 1 comment 4 replies
-
You should keep state outside of your list item components. e.g. you can create a Shared Value that is an object or an array with indices of selected items. Then, you can pass this array (as a Shared Value) to all list item components and read state from this object/array. |
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
-
I have a FlashList where you can select multiple items with long press, and it displays an animation. It works, but the problem I'm facing right now is that when you scroll down and then scroll back up, the card mounts again and the animation is triggered. I don't want the animation to show when the component mounts or unmounts.
here is my code
Beta Was this translation helpful? Give feedback.
All reactions