UNPKG

react-native-reanimated-carousel

Version:

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

16 lines (15 loc) 453 B
import type Animated from "react-native-reanimated"; type Range = [number, number]; export interface VisibleRanges { negativeRange: Range; positiveRange: Range; } export type IVisibleRanges = Animated.SharedValue<VisibleRanges>; export declare function useVisibleRanges(options: { total: number; viewSize: number; windowSize?: number; translation: Animated.SharedValue<number>; loop?: boolean; }): IVisibleRanges; export {};