Spicy-Sparks / react-native-flashdrag-list

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

Not support numColumns > 1 #3

Open jfmoe opened 6 months ago

jfmoe commented 6 months ago

I tried it and found this component doesn't support numColumns > 1. Do you have any plans to support grid draggable in the future? If not, do you have any ideas how to solve it when numColumns = 2?

<FlashDragList
  data={data}
  itemsSize={ITEM_HEIGHT}
  numColumns={2} 
  renderItem={renderItem}
  onSort={onSort}
/>
geroale commented 6 months ago

Hello, the component doesn't support numColumns because it's not descending from FlatList. The support for multiple columns is not in our plans. I guess implementing it requires changing most of the code.

jfmoe commented 6 months ago

Thanks for your response. I will try to solve it myself.

geroale commented 6 months ago

Thank you. PRs are welcome and we can also support or suggest the implementation if needed.