SHISME / react-native-draggable-grid

A draggable and sortable grid of react-native
308 stars 96 forks source link

how do I achieve replace two items's position when I dragRelease? #89

Open LastStranger opened 8 months ago

LastStranger commented 8 months ago

I found I can replace two items position hard coded, but if I want to replace two items position dynamic, I can't get position of the item I'm about to replace. is there a way I can get the item's key I'm about to replace? or is there a way just replace two items position without resort the whole grid?