Spicy-Sparks / react-native-flashdrag-list

Draggable FlashList for react-native
MIT License
54 stars 2 forks source link

Fix dragging item to same index #6

Closed andreaslydemann closed 2 months ago

andreaslydemann commented 3 months ago

For some reason when dragging an item to its fromIndex, if the sort function isn't run, I see a crash if I then try and delete that same item in my application. I haven't looked into the issue closely, I just observed that running the sort function in this scenario fixes the crash so thought others might've the same issue.