UNPKG

react-spring-lightbox

Version:

A flexible image gallery lightbox with native-feeling touch gestures and buttery smooth animations, built with react-spring.

8 lines (7 loc) 276 B
/** * Determines if the provided image is within the viewport * * @returns True if image needs to be resized to fit viewport, otherwise false */ declare const imageIsOutOfBounds: (imageRef: React.RefObject<HTMLImageElement>) => boolean; export default imageIsOutOfBounds;