UNPKG

@td-design/react-native

Version:

react-native UI组件库

14 lines 624 B
/// <reference types="react" /> import { NativeScrollEvent, NativeSyntheticEvent } from 'react-native'; import Animated from 'react-native-reanimated'; import type { CarouselProps } from './type'; export default function useCarousel({ auto, width, duration, count, }: Required<Pick<CarouselProps, 'auto' | 'width' | 'duration'>> & { count: number; }): { scrollViewRef: import("react").RefObject<Animated.ScrollView>; currentIndex: number; onTouchStart: () => void; onTouchEnd: () => void; onScrollEnd: (e: NativeSyntheticEvent<NativeScrollEvent>) => void; }; //# sourceMappingURL=useCarousel.d.ts.map