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
I get the error from Gallery component that renderImage function has incompatible props. What is the proper way to pass additional props to renderImage function?
The text was updated successfully, but these errors were encountered:
I'd like to pass some extra properties for my photo into renderImage function. The renderImage accepts props of type
RenderImageProps<CustomPhotoProps extends object = {}>
but if I try to define my renderImage method like this:
const imageRenderer: React.FC<RenderImageProps<CustomImageProps> = ({ photo, index }) => { ... }
I get the error from Gallery component that renderImage function has incompatible props. What is the proper way to pass additional props to renderImage function?
The text was updated successfully, but these errors were encountered: