Skip to content

Commit 5df5681

Browse files
author
ben
committed
Merge branch 'master' of github.com:benhowell/react-grid-gallery
2 parents ac182de + 3012135 commit 5df5681

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
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).
44

5-
5+
### Note:
6+
> 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).
67
78
## Live Demo & Examples
89

src/Gallery.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ class Gallery extends Component {
305305
theme={this.props.theme}
306306
onClickThumbnail={this.getOnClickLightboxThumbnailFn()}
307307
showThumbnails={this.props.showLightboxThumbnails}
308+
{...this.props.lightBoxProps}
308309
/>
309310
</div>
310311
);
@@ -367,7 +368,8 @@ Gallery.propTypes = {
367368
showLightboxThumbnails: PropTypes.bool,
368369
onClickLightboxThumbnail: PropTypes.func,
369370
tagStyle: PropTypes.object,
370-
thumbnailImageComponent: PropTypes.func
371+
thumbnailImageComponent: PropTypes.func,
372+
lightBoxProps : PropTypes.object,
371373
};
372374

373375
Gallery.defaultProps = {
@@ -386,6 +388,7 @@ Gallery.defaultProps = {
386388
showImageCount: true,
387389
lightboxWidth: 1024,
388390
showLightboxThumbnails: false,
391+
lightBoxProps : {},
389392
};
390393

391394
module.exports = Gallery;

0 commit comments

Comments
 (0)