@evo/swipe-gallery
v1.4.6
Published
React swipe gallery for mobile devices
Downloads
49
Maintainers
Keywords
Readme
Swipe-gallery
Мобильная галерея
Документацию хорошо бы написать, да
Usage
Пример:
import SwipeGallery from '@evo/swipe-gallery';
const Example = (props) => (
...
<SwipeGallery
name={name}
images={imagesUrl}
imageThumbs={imagesPreviewUrl}
mainImage={image}
theme='dark'
customStyles={{
bgColor: 'olive',
detailsColor: 'tomato',
icons: {
back: `<svg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'>
<path d='M64 28H15.25L37.625 5.625 32 0 0 32l32 32 5.625-5.625L15.25 36H64z' />
</svg>`,
}
}}
closeType='back'
enableFullScreen
showFullscreenControls
/>
);