react-native-snap-carousel-v4
Version:
Original project: https://github.com/meliorence/react-native-snap-carousel I made this package because I need the version 4 package to be published, so that I can run EAS Build on my expo app, previously I was pointing directly to the v4 branch on the ori
46 lines (45 loc) • 1.78 kB
TypeScript
import React, { PureComponent, ReactElement } from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import type Carousel from 'src/carousel/Carousel';
declare type PaginationProps<TData> = {
activeDotIndex: number;
dotsLength: number;
activeOpacity?: number;
carouselRef?: Carousel<TData> | null;
containerStyle?: StyleProp<ViewStyle>;
dotColor?: string;
dotContainerStyle?: StyleProp<ViewStyle>;
dotElement?: ReactElement;
dotStyle?: StyleProp<ViewStyle>;
inactiveDotColor?: string;
inactiveDotElement?: ReactElement;
inactiveDotOpacity: number;
inactiveDotScale: number;
inactiveDotStyle?: StyleProp<ViewStyle>;
renderDots?: (activeIndex: number, length: number, context: Pagination<TData>) => ReactElement;
tappableDots: boolean;
vertical: boolean;
accessibilityLabel?: string;
animatedDuration: number;
animatedFriction: number;
animatedTension: number;
delayPressInDot: number;
};
export default class Pagination<TData> extends PureComponent<PaginationProps<TData>> {
static defaultProps: {
inactiveDotOpacity: number;
inactiveDotScale: number;
tappableDots: boolean;
vertical: boolean;
animatedDuration: number;
animatedFriction: number;
animatedTension: number;
delayPressInDot: number;
};
constructor(props: PaginationProps<TData>);
_needsRTLAdaptations(): boolean;
get _activeDotIndex(): number;
get dots(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | React.FunctionComponentElement<any>[];
render(): false | JSX.Element;
}
export {};