mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
570 B
TypeScript
20 lines
570 B
TypeScript
import * as React from 'react';
|
|
import ReactImageGallery, { ReactImageGalleryItem, ReactImageGalleryProps } from 'react-image-gallery';
|
|
|
|
class ImageGallery extends React.Component {
|
|
render() {
|
|
const galleryItem: ReactImageGalleryItem = {
|
|
original: 'http://localhost/logo.jpg',
|
|
originalTitle: 'My Logo'
|
|
};
|
|
|
|
const props: ReactImageGalleryProps = {
|
|
items: [galleryItem],
|
|
autoPlay: false,
|
|
showFullscreenButton: false
|
|
};
|
|
|
|
return <ReactImageGallery {...props} />;
|
|
}
|
|
}
|