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

react-native-lightbox

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-lightbox - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

2

Lightbox.js

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

30

LightboxOverlay.js

@@ -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"
}
}
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