react-native-advance-draggable-view
Advanced tools
Comparing version 1.0.4 to 1.0.6
@@ -45,2 +45,7 @@ var TENSION = 800; | ||
openDrawer = () => { | ||
this.startAnimation(-100, SCREEN_HEIGHT, this.state.initialPositon, null, this.state.finalPosition); | ||
this.props.onRelease && this.props.onRelease(true); // only add this line if you need to detect if the drawer is up or not | ||
} | ||
isAValidMovement = (distanceX, distanceY) => { | ||
@@ -47,0 +52,0 @@ const moveTravelledFarEnough = Math.abs(distanceY) > Math.abs(distanceX) && Math.abs(distanceY) > 2; |
{ | ||
"name": "react-native-advance-draggable-view", | ||
"version": "1.0.4", | ||
"version": "1.0.6", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "react-component", |
@@ -43,2 +43,3 @@ #react-native-advance-draggable-view | ||
| :------------ |:---------------:| :---------------:| :-----| | ||
| refFunc | undefined | `function` | Can get the instance of the Drawer and use it's internal functions | | ||
| onDragDown | undefined | `function` | If you pass a function as parameter it will be notified when the user drag down the drawer | | ||
@@ -45,0 +46,0 @@ | onRelease | undefined | `function` | If you pass a function as parameter it will be notified when the user release the drawer after drag it | |
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
482046
1006
52