react-native-zoom-toolkit
Version:
Most complete set of pinch to zoom utilites for React Native
30 lines • 1.46 kB
TypeScript
import React from 'react';
import { type SharedValue } from 'react-native-reanimated';
import type { ScaleMode, PinchMode } from '../../commons/types';
import { type GalleryProps } from './types';
type GalleryGestureHandlerProps = {
length: number;
gap: number;
maxScale: SharedValue<number>;
itemSize: Readonly<SharedValue<number>>;
vertical: boolean;
tapOnEdgeToItem: boolean;
allowPinchPanning: boolean;
allowOverflow: boolean;
zoomEnabled: boolean;
scaleMode: ScaleMode;
pinchMode: PinchMode;
longPressDuration: number;
onTap?: GalleryProps['onTap'];
onPanStart?: GalleryProps['onPanStart'];
onPanEnd?: GalleryProps['onPanEnd'];
onPinchStart?: GalleryProps['onPinchStart'];
onPinchEnd?: GalleryProps['onPinchEnd'];
onSwipe?: GalleryProps['onSwipe'];
onLongPress?: GalleryProps['onLongPress'];
onVerticalPull?: GalleryProps['onVerticalPull'];
onGestureEnd?: GalleryProps['onGestureEnd'];
};
declare const _default: React.MemoExoticComponent<({ length, gap, maxScale, itemSize, vertical, tapOnEdgeToItem, zoomEnabled, scaleMode, allowOverflow, allowPinchPanning, pinchMode, longPressDuration, onTap, onPanStart, onPanEnd, onPinchStart: onUserPinchStart, onPinchEnd: onUserPinchEnd, onSwipe: onUserSwipe, onLongPress, onVerticalPull, onGestureEnd, }: GalleryGestureHandlerProps) => JSX.Element>;
export default _default;
//# sourceMappingURL=GalleryGestureHandler.d.ts.map