@janiscommerce/ui-native
Version:
components library for Janis app
14 lines (13 loc) • 651 B
TypeScript
/// <reference types="react" />
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;