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

react-native-advance-draggable-view

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-advance-draggable-view - npm Package Compare versions

Comparing version 1.0.4 to 1.0.6

5

index.js

@@ -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;

2

package.json
{
"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 |

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