react-native-reanimated-carousel
Version:
Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.
18 lines (17 loc) • 649 B
TypeScript
import { type StyleProp, type ViewStyle } from "react-native";
import type { SharedValue } from "react-native-reanimated";
import React from "react";
import type { DotStyle } from "./PaginationItem";
export interface BasicProps<T> {
progress: SharedValue<number>;
horizontal?: boolean;
data: Array<T>;
renderItem?: (item: T, index: number) => React.ReactNode;
containerStyle?: StyleProp<ViewStyle>;
dotStyle?: DotStyle;
activeDotStyle?: DotStyle;
size?: number;
onPress?: (index: number) => void;
carouselName?: string;
}
export declare const Basic: <T extends {}>(props: BasicProps<T>) => React.JSX.Element;