From e56f9ea95bc1c762ccec712c630726e583137607 Mon Sep 17 00:00:00 2001 From: shubham gupta Date: Sat, 29 Feb 2020 01:08:26 +0530 Subject: [PATCH] added onLongPress --- Lightbox.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Lightbox.js b/Lightbox.js index 94e17cb..8a1bfc5 100644 --- a/Lightbox.js +++ b/Lightbox.js @@ -5,12 +5,17 @@ import { Animated, TouchableHighlight, View } from 'react-native'; import LightboxOverlay from './LightboxOverlay'; export default class Lightbox extends Component { + static contextTypes = { + actionSheet: PropTypes.func, + }; + static propTypes = { activeProps: PropTypes.object, renderHeader: PropTypes.func, renderContent: PropTypes.func, underlayColor: PropTypes.string, backgroundColor: PropTypes.string, + onLongPress: PropTypes.func, didOpen: PropTypes.func, onOpen: PropTypes.func, willClose: PropTypes.func, @@ -130,7 +135,7 @@ export default class Lightbox extends Component { this.props.onLongPress(this.context, this.props)} > {this.props.children}