Support for horizontal list?
allanjsx opened this issue · comments
Allan Jiang commented
I have a horizontal list to sort, after adding horizontal={true}
to the sortable list, I observed the sorting behavior is weird, and I still have to drag the item up and down.
Here's example:
<SortableListView
style={{ flex: 1 }}
data={this.props.images}
order={order}
onRowMoved={e => {
order.splice(e.to, 0, order.splice(e.from, 1)[0])
this.forceUpdate()
}}
horizontal={true} <------ added this to make it horizontal.
renderRow={row => <RowComponent data={row} />}
/>
Any suggested work around? Thanks.
Andrew Shini commented
Horizontal lists are not supported. Use react-native-sortable-list
.
Jethro Estrada commented
Booo