Releases: benhowell/react-grid-gallery
Releases · benhowell/react-grid-gallery
v0.3.6
v0.3.5
-
Bumped to react 15.5.4
-
Refactored for react 16 (moved from PropTypes to prop-types package).
-
Bumped react-images to 0.5.4 which has been refactored for react 16.
-
Added
theme
pass-though prop PR 27. Thanks danalloway. -
Updated acknowledgements.
v0.3.3
v0.3.2
v0.3.1
v0.3.0
- Fixed bug where lightboxWidth does not exceed 1024px
- Bumped react-images to 0.5.2
v0.2.10
v0.2.9
v0.2.8
v0.2.7
Breaking Changes
- Consistent naming scheme implemented both internally and externally. External breaking change to the
onImageSelected
prop which has been renamedonSelectImage
. All internal instances ofFunc
refactored toFn
.handleClickImage
refactored toonClickImage
.handleResize
refactored toonResize
.
The following changes in v0.2.7 allow react-grid-gallery to be used in an (optionally) stateless way.
- Added optional prop
onClickImage
. This prop takes a function and is triggered when a lightbox displayed image is clicked. Supplying this prop will override the defaultonClickImage
function. - Added optional prop
onClickPrev
. This prop takes a function and is triggered when the left arrow in lightbox is clicked. Supplying this prop will override the defaultonClickPrev
function. - Added optional prop
onClickNext
. This prop takes a function and is triggered when the right arrow in lightbox is clicked. Supplying this prop will override the defaultonClickNext
function. - Added explicit
closeLightbox
function to the lightboxonClose
prop.