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

Doesn't work with <TouchableNativeFeedback>

Open MewX opened this issue 8 years ago • 0 comments

<SortableListView
    // enableEmptySections={true}
    style={{flex: 1}}
    data={this.convertDataFormat(
        this.state.items
            .map(this.itemMapping.bind(this))
            .filter(this.itemFilter.bind(this)))
    }
    onRowMoved={(e) => this.itemMoved(e.from, e.to)}
    renderRow={(rowData) => return (
        <TouchableNativeFeedback
            background={TouchableNativeFeedback.SelectableBackground()}>
            <View style={{alignSelf: "stretch", backgroundColor: textBgColor}}>
                <Text>{rowData.text}</Text>
            </View>
        </TouchableNativeFeedback>
    )}
/>

The codes above are not draggable.

If I change the content of renderRow into just <Text>{rowData.text}</Text>, the SortableListView works.

MewX avatar Apr 23 '17 14:04 MewX