UNPKG

react-native-reanimated-carousel

Version:

Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.

12 lines (11 loc) 360 B
import type Animated from "react-native-reanimated"; export declare type IVisibleRanges = Animated.SharedValue<{ negativeRange: number[]; positiveRange: number[]; }>; export declare function useVisibleRanges(options: { total: number; viewSize: number; windowSize?: number; translation: Animated.SharedValue<number>; }): IVisibleRanges;