react-lightbox-component icon indicating copy to clipboard operation
react-lightbox-component copied to clipboard

there is no prop for small size thumbnails on gallery view

Open Ekta3012 opened this issue 7 years ago • 1 comments

Ekta3012 avatar Jan 02 '19 08:01 Ekta3012

There is an official way to use the small thumbnail in a gallery and high-quality image when opened But unfortunately, it's not documented.

Go to the bottom of this code, there you will find thumbnail parameter https://github.com/jfcaiceo/react-lightbox-component/blob/master/src/lib/components/Lightbox.jsx

This is how i use it

filter(props.list, function(each) {
    image_list.push({ 
        src : high_quality+each.file_path,
        title: ' ',
        description: ' ',
        thumbnail : thumbnail+each.file_path
    });
});

amitpatil321 avatar Apr 19 '19 09:04 amitpatil321