react-native-sortable-listview icon indicating copy to clipboard operation
react-native-sortable-listview copied to clipboard

Support for horizontal list?

Open allanjsx opened this issue 7 years ago • 2 comments

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.

allanjsx avatar Jan 30 '18 09:01 allanjsx

Horizontal lists are not supported. Use react-native-sortable-list.

superandrew213 avatar Sep 16 '18 10:09 superandrew213

Booo

micchyboy237 avatar Oct 19 '18 08:10 micchyboy237