Releases: neptunian/react-photo-gallery
Releases · neptunian/react-photo-gallery
v6.0.29
6.0.28
6.0.26
6.0.23
Fix warnings for React 16.0.0
6.0.7 update build files 6.0.7
6.0.0
Updates
- add eslint, prettier checks
- update react, react-dom, react-measure
- new optional ImageComponent prop on Gallery
Breaking changes
- cols props is columns
- srcset props is srcSet
- onClickPhoto is onClick
- onClick (previously onClickPhoto) returns parameters in a different order and different data:
onClick(event, {
index,
photo: photos[index],
previous: photos[index - 1] || null,
next: photos[index + 1] || null,
});
Special thanks to @smeijer for lots of guidance, ideas, and contributed code.
5.6.2
Update to React v15.5.0
- Fixes warnings for this component
5.4.0
-
Removes examples, tests, original source code, gulpfile and various *.swo files from the NPM package, reducing the size from 1.66 MB to 30.4 KB.
-
Demo app - Load more photos if you reach the end of the array while going through the lightbox
-
Demo app - Update page styles