Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-drag-sort

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-drag-sort - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

12

AutoDragSortableView.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc