diff --git a/types/react-image-gallery/index.d.ts b/types/react-image-gallery/index.d.ts index c7de219cf9..6f6d8616b4 100644 --- a/types/react-image-gallery/index.d.ts +++ b/types/react-image-gallery/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-image-gallery 0.9 +// Type definitions for react-image-gallery 1.0 // Project: https://github.com/xiaolin/react-image-gallery // Definitions by: Adam Webb // William Tio @@ -49,7 +49,7 @@ export interface ReactImageGalleryProps { showPlayButton?: boolean; showFullscreenButton?: boolean; disableThumbnailScroll?: boolean; - disableArrowKeys?: boolean; + disableKeyDown?: boolean; disableSwipe?: boolean; useBrowserFullscreen?: boolean; preventDefaultTouchmoveEvent?: boolean; diff --git a/types/react-image-gallery/react-image-gallery-tests.tsx b/types/react-image-gallery/react-image-gallery-tests.tsx index 0120da4a26..cf82a89f82 100644 --- a/types/react-image-gallery/react-image-gallery-tests.tsx +++ b/types/react-image-gallery/react-image-gallery-tests.tsx @@ -38,7 +38,8 @@ class ImageGallery extends React.Component { items: [galleryItem], autoPlay: false, showFullscreenButton: false, - renderThumbInner: this.renderThumbInner + renderThumbInner: this.renderThumbInner, + disableKeyDown: false }; return this.gallery = r} {...props} />;