react-native-reanimated-carousel
Version:
Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.
13 lines (12 loc) • 449 B
TypeScript
import type Animated from "react-native-reanimated";
import type { IVisibleRanges } from "./useVisibleRanges";
export interface IOpts {
index: number;
size: number;
handlerOffset: Animated.SharedValue<number>;
dataLength: number;
type?: "positive" | "negative";
viewCount?: number;
loop?: boolean;
}
export declare const useOffsetX: (opts: IOpts, visibleRanges: IVisibleRanges) => Readonly<Animated.SharedValue<number>>;