UNPKG

@janiscommerce/ui-native

Version:
13 lines (12 loc) 619 B
import { NativeScrollEvent, NativeSyntheticEvent, ScrollView } from 'react-native'; import { CarouselProps } from '../'; declare const useCarouselControls: ({ pages, isLoop, autoplay, autoPlayReverse, intervalTime, customWidth, buttonsCallback, pagesCallback, }: CarouselProps) => { activePage: number; slider: import("react").MutableRefObject<ScrollView | null>; intervalId: import("react").MutableRefObject<any>; width: number; goPrev: () => void; goNext: () => void; onPageChange: ({ nativeEvent }: NativeSyntheticEvent<NativeScrollEvent>) => void; }; export default useCarouselControls;