UNPKG

react-native-carousel-loop

Version:
47 lines 1.54 kB
import { ReactNode } from 'react'; import { ViewProps, TextProps, NativeSyntheticEvent, NativeScrollEvent } from 'react-native'; export interface CarouselProps { children: ReactNode; autoplay?: boolean; delay?: number; currentPage?: number; style?: ViewProps['style']; pageStyle?: ViewProps['style']; contentContainerStyle?: ViewProps['style']; pageInfo?: boolean; pageInfoBackgroundColor?: string; pageInfoTextStyle?: TextProps['style']; pageInfoBottomContainerStyle?: ViewProps['style']; pageInfoTextSeparator?: string; bullets: boolean; bulletsContainerStyle?: TextProps['style']; bulletStyle?: TextProps['style']; arrows?: boolean; arrowsContainerStyle?: TextProps['style']; arrowStyle?: TextProps['style']; leftArrowStyle?: TextProps['style']; rightArrowStyle?: TextProps['style']; leftArrowText?: string; rightArrowText?: string; chosenBulletStyle?: TextProps['style']; onAnimateNextPage?: (index: number) => void; onPageBeingChanged?: (index: number) => void; swipe?: boolean; isLooped?: boolean; } export interface StateProps { currentPage?: number; size: { width: number; height: number; }; childrenLength?: number; contents?: any; } export declare type ScrollEvent = NativeSyntheticEvent<NativeScrollEvent>; export interface ScrollTo { offset: number; animated: boolean; nofix?: boolean; } //# sourceMappingURL=types.d.ts.map