computerjazz / react-native-draggable-flatlist

A drag-and-drop-enabled FlatList for React Native
MIT License
1.94k stars 406 forks source link

Items in the list start disappearing on ios on dragging them #500

Open AyishmA opened 1 year ago

AyishmA commented 1 year ago

Items in the list start disappearing on ios on dragging them.

To Reproduce long press the item start dragging, the item will disappear other items will also disappear due to drag Platform & Dependencies

jianxinzhoutiti commented 1 year ago

any soultion regarding this?

bond-it commented 11 months ago

I also had this problem on Android. When I moved an item, several items disappeared from the list. I solved this problem by modifying keyExtractor. I used just item.id. After adding the index, the problem was solved.

keyExtractor={(item, index) => item.id + " " + index}