diff --git a/Lightbox.js b/Lightbox.js index 56c8536..68e43c1 100644 --- a/Lightbox.js +++ b/Lightbox.js @@ -7,6 +7,7 @@ import LightboxOverlay from './LightboxOverlay'; export default class Lightbox extends Component { static propTypes = { activeProps: PropTypes.object, + touchableProps: PropTypes.object, renderHeader: PropTypes.func, renderContent: PropTypes.func, underlayColor: PropTypes.string, @@ -24,6 +25,7 @@ export default class Lightbox extends Component { static defaultProps = { swipeToDismiss: true, + touchableProps: {}, onOpen: () => {}, didOpen: () => {}, willClose: () => {}, @@ -129,6 +131,7 @@ export default class Lightbox extends Component { {this.props.children} diff --git a/README.md b/README.md index 6bc4ffe..231895d 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ const MyApp = () => ( | Prop | Type | Description | |---|---|---| |**`activeProps`**|`object`|Optional set of props applied to the content component when in lightbox mode. Usable for applying custom styles or higher resolution image source.| +|**`touchableProps`**|`object`|Optional set of props applied to the touchable component. Usable for applying advance props such as onLongPress.| |**`renderHeader(close)`**|`function`|Custom header instead of default with X button| |**`renderContent`**|`function`|Custom lightbox content instead of default child content| |**`willClose`**|`function`|Triggered before lightbox is closed|