react-native-zoom-toolkit
Version:
Smoothly zoom any image, video or component you want!
35 lines • 1.64 kB
TypeScript
import React from 'react';
import { PanMode, PinchCenteringMode, ScaleMode } from '../../commons/types';
import type { ResumableZoomState, ResumableZoomType } from './types';
declare const _default: React.ForwardRefExoticComponent<{
decay?: boolean | undefined;
extendGestures?: boolean | undefined;
tapsEnabled?: boolean | undefined;
panEnabled?: boolean | undefined;
pinchEnabled?: boolean | undefined;
maxScale?: number | import("../../commons/types").SizeVector<number> | undefined;
pinchCenteringMode?: PinchCenteringMode | undefined;
onSwipe?: ((direction: import("../../commons/types").SwipeDirection) => void) | undefined;
onGestureActive?: ((e: ResumableZoomState) => void) | undefined;
onGestureEnd?: (() => void) | undefined;
onOverPanning?: ((x: number, y: number) => void) | undefined;
} & {
children?: React.ReactNode;
} & Partial<{
onPanStart: import("../../commons/types").PanGestureEventCallback;
onPanEnd: import("../../commons/types").PanGestureEventCallback;
}> & Partial<{
onPinchStart: import("../../commons/types").PinchGestureEventCallback;
onPinchEnd: import("../../commons/types").PinchGestureEventCallback;
}> & Omit<Partial<{
onTap: import("../../commons/types").TapGestureEventCallback;
onDoubleTap: import("../../commons/types").TapGestureEventCallback;
}>, "onDoubleTap"> & Omit<Partial<{
minScale: number;
maxScale: number;
panMode: PanMode;
scaleMode: ScaleMode;
allowPinchPanning: boolean;
}>, "maxScale"> & React.RefAttributes<ResumableZoomType>>;
export default _default;
//# sourceMappingURL=ResumableZoom.d.ts.map