react-native-sortable-listview
react-native-sortable-listview copied to clipboard
Drag drop capable wrapper of ListView for React Native
When running a snapshot test wit jest on a component using the `SortableListView`, I get following error: ``` node_modules/react-native-sortable-listview/index.js:186 _this3.scrollResponder=_this3.refs.list.getScrollResponder(); ^ TypeError: _this3.refs.list.getScrollResponder is not a function at null._onTimeout (node_modules/react-native-sortable-listview/index.js:186:41)...
``` this.itemMoved(e.from, e.to)} renderRow={(rowData) => return ( {rowData.text} )} /> ``` The codes above are not draggable. If I change the content of `renderRow` into just `{rowData.text}`, the `SortableListView` works.
Is there a way we can specify the bounds of dragging? i.e only allow dragging between position 1 and list.length-2