You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An easy fix seems to be to call renderComponents using jsx syntax, like <renderComponent left=left [...] />. If this is for some reason not possible, the line
When passing a class component as
RenderImage
, the errorUncaught TypeError: renderComponent is not a function
gets thrown here:
react-photo-gallery/src/Gallery.js
Lines 99 to 109 in 0bb8e4c
An easy fix seems to be to call renderComponents using
jsx
syntax, like<renderComponent left=left [...] />
. If this is for some reason not possible, the linereact-photo-gallery/index.d.ts
Line 115 in 0bb8e4c
should be changed to
renderImage?: React.StatelessFunctionalComponent<RenderImageProps<CustomPhotoProps>>
The text was updated successfully, but these errors were encountered: