react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

onDragEnd not fire right after animation finish

Open dioi2000 opened this issue 1 year ago • 8 comments

  • 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

dioi2000 avatar Oct 24 '23 09:10 dioi2000

+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

joerndyherrn avatar Nov 08 '23 08:11 joerndyherrn

I implemented calling onDragEnd directly if there is no placeholder skipping withSpring: https://github.com/LulububuSoftwareGmbH/react-native-draggable-flatlist/commit/f0b97cf7d0074ec30961c5dbaaad936581f905b2

joerndyherrn avatar Nov 27 '23 12:11 joerndyherrn

Please use keyExtractor={(item) => item.key} use param key integer

abdullah253d2 avatar Mar 11 '24 11:03 abdullah253d2

I have the same problem of the rerender. I am quite ok with the delayed firing but I get the same skip

Monkhai avatar Apr 05 '24 15:04 Monkhai

Using keyExtractor fixes the problem of rerender.

abdullah253d2 avatar Apr 05 '24 15:04 abdullah253d2

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 avatar Apr 05 '24 15:04 Monkhai

@Monkhai Did you ever find a solution to this?

WKampel avatar Aug 29 '24 22:08 WKampel