react-native-drag-sort
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -108,10 +108,16 @@ import React, {Component} from 'react' | ||
this.initTag() | ||
this.autoMeasureHeight() | ||
} | ||
componentDidUpdate() { | ||
this.autoMeasureHeight() | ||
} | ||
// Compatible with different systems and paging loading | ||
autoMeasureHeight = () => { | ||
if (!this.isHasMeasure) { | ||
setTimeout(() => { | ||
setTimeout(()=>{ | ||
this.scrollTo(1, false) | ||
this.scrollTo(0, false) | ||
}, 0) | ||
}, 30) | ||
} | ||
@@ -197,2 +203,3 @@ } | ||
this.isHasMove = false | ||
this.isHasMeasure = true | ||
@@ -572,3 +579,2 @@ if (!this.props.sortable) return | ||
onScrollListener = ({nativeEvent}) => { | ||
this.isHasMeasure = true; | ||
this.curScrollData = { | ||
@@ -575,0 +581,0 @@ totalHeight: nativeEvent.contentSize.height, |
{ | ||
"name": "react-native-drag-sort", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "Drag and drop sort control for react-native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80542
1126