react-native-gesture-image-viewer
Version:
🖼️ A highly customizable and easy-to-use React Native image viewer with gesture support and external controls
25 lines • 1.07 kB
TypeScript
import type { FlatListComponent, ScrollViewComponent } from './types';
export declare const isScrollViewLike: (component: any) => component is ScrollViewComponent;
export declare const isFlatListLike: (component: any) => component is FlatListComponent;
export declare const isFlashListLike: (component: any) => component is any;
export declare const createBoundsConstraint: ({ width, height }: {
width: number;
height: number;
}) => ({ scale, translateX, translateY }: {
translateX: number;
translateY: number;
scale: number;
}) => {
translateX: number;
translateY: number;
};
export declare const createLoopData: <T>(dataRef: React.RefObject<T[]>, enableLoop: boolean) => T[];
export declare const getLoopAdjustedIndex: (scrollIndex: number, originalDataLength: number, enableLoop: boolean) => {
realIndex: number;
needsJump: boolean;
jumpToIndex?: number;
};
export declare const createScrollAction: (listRef: any, width: number) => {
scrollTo: (index: number, animated: boolean) => void;
};
//# sourceMappingURL=utils.d.ts.map