@kitten-team/react-native-sortable-grid
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -16,3 +16,3 @@ import * as React from 'react' | ||
const ITEMS_PER_ROW = 4 | ||
const DRAG_ACTIVATION_TRESHOLD = 350 // Milliseconds | ||
const DRAG_ACTIVATION_TRESHOLD = 1000 // Milliseconds | ||
const BLOCK_TRANSITION_DURATION = 300 // Milliseconds | ||
@@ -24,3 +24,3 @@ const ACTIVE_BLOCK_CENTERING_DURATION = 200 // Milliseconds | ||
class Block extends React.Component { | ||
class Block extends React.PureComponent { | ||
@@ -361,2 +361,5 @@ componentWillMount = () => { | ||
let itemOrder = _.sortBy( this.itemOrder, item => item.order ) | ||
this.state.blockPositions.forEach((item) => { | ||
item.currentPosition.flattenOffset(); | ||
}) | ||
this.onDragRelease({ itemOrder }) | ||
@@ -363,0 +366,0 @@ this.setState({ activeBlock: null }) |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "Drag-and-drop sortable grid view for React Native.", | ||
@@ -11,0 +11,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
207035
996