react-native-vk-draggablelist
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -16,2 +16,4 @@ /** | ||
propTypes: { | ||
disableDrag: PropTypes.bool.isRequired, //scrollView or view | ||
shouldUpdateId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), //需要更新的cell id | ||
@@ -145,3 +147,3 @@ shouldUpdate:PropTypes.bool, | ||
...this.emptyPanResponder.panHandlers, | ||
onStartShouldSetResponder: () => true, | ||
onStartShouldSetResponder: () => !this.props.disableDrag, | ||
onResponderGrant: (evt, gestureState) => { | ||
@@ -148,0 +150,0 @@ console.log("onResponderGrant:", this.props.keyName); |
@@ -15,2 +15,4 @@ 'use strict'; | ||
propTypes: { | ||
disableDrag: PropTypes.bool, //scrollView or view | ||
isScrollView: PropTypes.bool.isRequired, //scrollView or view | ||
@@ -34,2 +36,3 @@ dataSource: PropTypes.array.isRequired, //data | ||
return { | ||
disableDrag:false | ||
}; | ||
@@ -178,2 +181,3 @@ }, | ||
keyName={key + 'd'} | ||
disableDrag={this.props.disableDrag} | ||
@@ -205,2 +209,3 @@ dummy={true} | ||
keyName={key} | ||
disableDrag={this.props.disableDrag} | ||
@@ -236,2 +241,3 @@ onLayout={onLayout} | ||
keyName={this.state.activeKey} | ||
disableDrag={this.props.disableDrag} | ||
@@ -238,0 +244,0 @@ restLayout={this.state.activeInitialLayout} |
{ | ||
"name": "react-native-vk-draggablelist", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
23869
461