react-native-sortable-listview
react-native-sortable-listview copied to clipboard
Doesn't work with <TouchableNativeFeedback>
<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.