react-native-draggable-flatlist
react-native-draggable-flatlist copied to clipboard
onDragEnd not fire right after animation finish
- react-native-draggable-flatlist 4.0.1
- react-native 0.72.3
- react-native-reanimated 3.5.4
https://github.com/computerjazz/react-native-draggable-flatlist/assets/33106641/6de6d6d3-bb2e-42ba-8961-9e81f886c542
+1 Got the same issue and I'm updating data on dragEnd which causes rendering another component that seems to be laggy during the delay
I implemented calling onDragEnd directly if there is no placeholder skipping withSpring: https://github.com/LulububuSoftwareGmbH/react-native-draggable-flatlist/commit/f0b97cf7d0074ec30961c5dbaaad936581f905b2
Please use keyExtractor={(item) => item.key} use param key integer
I have the same problem of the rerender. I am quite ok with the delayed firing but I get the same skip
Using keyExtractor fixes the problem of rerender.
Not for me. I am updating using ReactQuery. If I put the data from there into a state and then use that it works but I lose the benefit of ReactQuery's caching management. I am using a string key as the library specifies.
@Monkhai Did you ever find a solution to this?