React swipe gallery for mobile devices
npm install @evo/swipe-galleryМобильная галерея
Документацию хорошо бы написать, да
Пример:
``jsx
import SwipeGallery from '@evo/swipe-gallery';
const Example = (props) => (
...
images={imagesUrl}
imageThumbs={imagesPreviewUrl}
mainImage={image}
theme='dark'
customStyles={{
bgColor: 'olive',
detailsColor: 'tomato',
icons: {
back: ,``
}
}}
closeType='back'
enableFullScreen
showFullscreenControls
/>
);