UNPKG

react-native-images-preview

Version:
34 lines (33 loc) 1.27 kB
import Animated from 'react-native-reanimated'; import type { UseImageModalProps } from '../Types'; declare const useImageModal: ({ modalConfig, setModalConfig, pinchZoomEnabled, doubleTapZoomEnabled, swipeDownCloseEnabled, }: UseImageModalProps) => { loading: boolean; setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>; onPressClose: () => void; animatedImageRef: import("react").RefObject<Animated.Image>; imageAnimatedStyle: { height: number; width: number; top: number; left: number; }; modalAnimatedStyle: { backgroundColor: string; }; animatedImageStyle: { height: number; width: number; transform: { scale: number; }[]; top: number; left: number; }; headerOpacityAnimation: { opacity: number; }; panGestureEvent: import("react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture").PanGesture; pinchGestureEvent: import("react-native-gesture-handler/lib/typescript/handlers/gestures/pinchGesture").PinchGesture; doubleTapEvent: import("react-native-gesture-handler/lib/typescript/handlers/gestures/tapGesture").TapGesture; }; export default useImageModal;