react-photo-gallery
react-photo-gallery copied to clipboard
React Photo Gallery
When passing a class component as `RenderImage`, the error `Uncaught TypeError: renderComponent is not a function` gets thrown here: https://github.com/neptunian/react-photo-gallery/blob/0bb8e4c4a027c021f8a5a06de71e89026596fd95/src/Gallery.js#L99-L109 An easy fix seems to be to call renderComponents using...
the link in the readme for the dynamic code example has an error on line 71 https://codesandbox.io/s/ll7ym48027 Remove that line and the code example works. For some reason I cant...
I get the following server-side warning in Next.js with react-photo-gallery v8 ```bash Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output...

Fix for https://github.com/neptunian/react-photo-gallery/issues/144 https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a
import Gallery from "react-photo-gallery" and Gallery photos={photos} in the jsx? ? Why not show how this works in an entire component like everyone else does with their npm packages? I...
This PR avoids a re-layout of the photos when width is 0, ie. when the containing element is hidden. Layout during width=0 causes the following problems: 1. For an app...
Does react-photo-gallery enact any optimizations similar to react-window when there are 1000s+ of images or a quantity that would be aggressive as per DOM standards? This possibly could be via...
Hi! First of all, thanks for your library, it's really awesome :) I'm using your library in a chat app to display images attached to a message. Inside the app,...