New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-view-transformer

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-view-transformer - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

26

library/transform/ViewTransformer.js

@@ -21,2 +21,6 @@ 'use strict';

static Rect = Rect;
static getTransform = getTransform;
constructor(props) {

@@ -53,3 +57,2 @@ super(props);

this.cancelAnimation = this.cancelAnimation.bind(this);
this.debug = this.debug.bind(this);
this.contentRect = this.contentRect.bind(this);

@@ -124,6 +127,10 @@ this.transformedContentRect = this.transformedContentRect.bind(this);

this.gestureResponder = createResponder({
onStartShouldSetResponder: (evt, gestureState) => true,
onStartShouldSetResponder: (evt, gestureState) => {
return true;
},
onMoveShouldSetResponder: this.handleMove,
onResponderMove: this.handleMove,
onResponderGrant: ((evt) => {
this.props.onTransformStart && this.props.onTransformStart();
this.setState({responderGranted: true});

@@ -146,2 +153,9 @@ }).bind(this),

NativeModules.UIManager.measure(handle, ((x, y, width, height, pageX, pageY) => {
if(typeof this.props.pageX === 'number') {
pageX = this.props.pageX;
}
if(typeof this.props.pageY === 'number') {
pageY = this.props.pageY;
}
this.setState({

@@ -319,3 +333,3 @@ width: width,

});
if(handled) {
if (handled) {
return;

@@ -416,6 +430,4 @@ }

debug() {
console.log('------debug------');
console.log('state=' + JSON.stringify(this.state));
console.log('-------end-------');
setTransform(transform) {
this.setState(transform);
}

@@ -422,0 +434,0 @@ }

{
"name": "react-native-view-transformer",
"version": "0.0.12",
"version": "0.0.13",
"description": "`react-native-view-transformer` is a pure JavaScript RN component that makes **ANY** views transformable using gestures like pinch, double tap or pull, as below shows:",

@@ -5,0 +5,0 @@ "main": "library/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