diff --git a/README.md b/README.md index f1fa195..972a4df 100755 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ Justified image gallery component for [React](http://facebook.github.io/react/) inspired by [Google Photos](https://photos.google.com/) and based upon [React Images](https://github.com/jossmac/react-images). - +### Note: +> As of the release of [v0.5.4](https://github.com/benhowell/react-grid-gallery/releases/tag/v0.5.4) (2019-03-10) I will no longer be actively adding features and aggressively maintaining [react-grid-gallery](https://github.com/benhowell/react-grid-gallery). My online behavioral experiment platform [Psychstudio](https://www.psychstudio.com/) consumes all of my time and I am no longer capable of giving react-grid-gallery the attention it needs. A big thanks to [everyone who has contributed](https://github.com/benhowell/react-grid-gallery/blob/master/README.md#acknowledgements) over the last 4 years and thanks to everyone who has downloaded react-grid-gallery (hopefully it has been useful to you). ## Live Demo & Examples diff --git a/src/Gallery.js b/src/Gallery.js index 00131ce..840ec6c 100755 --- a/src/Gallery.js +++ b/src/Gallery.js @@ -305,6 +305,7 @@ class Gallery extends Component { theme={this.props.theme} onClickThumbnail={this.getOnClickLightboxThumbnailFn()} showThumbnails={this.props.showLightboxThumbnails} + {...this.props.lightBoxProps} /> ); @@ -367,7 +368,8 @@ Gallery.propTypes = { showLightboxThumbnails: PropTypes.bool, onClickLightboxThumbnail: PropTypes.func, tagStyle: PropTypes.object, - thumbnailImageComponent: PropTypes.func + thumbnailImageComponent: PropTypes.func, + lightBoxProps : PropTypes.object, }; Gallery.defaultProps = { @@ -386,6 +388,7 @@ Gallery.defaultProps = { showImageCount: true, lightboxWidth: 1024, showLightboxThumbnails: false, + lightBoxProps : {}, }; module.exports = Gallery;