react-native-lightbox
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -31,2 +31,3 @@ import React, { Component, Children, cloneElement } from 'react'; | ||
onClose: () => {}, | ||
onLongPress: () => {}, | ||
}; | ||
@@ -133,2 +134,3 @@ | ||
onPress={this.open} | ||
onLongPress={this.props.onLongPress} | ||
> | ||
@@ -135,0 +137,0 @@ {this.props.children} |
@@ -75,15 +75,15 @@ import React, { Component } from 'react'; | ||
state = { | ||
isAnimating: false, | ||
isPanning: false, | ||
target: { | ||
x: 0, | ||
y: 0, | ||
opacity: 1, | ||
}, | ||
pan: new Animated.Value(0), | ||
openVal: new Animated.Value(0), | ||
}; | ||
componentWillMount() { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
isAnimating: false, | ||
isPanning: false, | ||
target: { | ||
x: 0, | ||
y: 0, | ||
opacity: 1, | ||
}, | ||
pan: new Animated.Value(0), | ||
openVal: new Animated.Value(0), | ||
}; | ||
this._panResponder = PanResponder.create({ | ||
@@ -174,4 +174,4 @@ // Ask to be the responder: | ||
componentWillReceiveProps(props) { | ||
if(this.props.isOpen != props.isOpen && props.isOpen) { | ||
componentDidUpdate(prevProps) { | ||
if(this.props.isOpen !== prevProps.isOpen && this.props.isOpen) { | ||
this.open(); | ||
@@ -178,0 +178,0 @@ } |
{ | ||
"name": "react-native-lightbox", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Images etc in Full Screen Lightbox Popovers for React Native", | ||
@@ -33,4 +33,4 @@ "main": "Lightbox.js", | ||
"dependencies": { | ||
"prop-types": "^15.5.10" | ||
"prop-types": "^15.7.2" | ||
} | ||
} |
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
363
14958
5
Updatedprop-types@^15.7.2