react-native-reanimated-carousel
Version:
Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.
22 lines (21 loc) • 696 B
TypeScript
import type { FC } from "react";
import type { ViewStyle } from "react-native";
import type { SharedValue } from "react-native-reanimated";
import type { TAnimationStyle } from "./ItemLayout";
import type { CarouselRenderItem } from "../types";
interface Props {
data: any[];
dataLength: number;
rawDataLength: number;
loop: boolean;
size: number;
windowSize?: number;
autoFillData: boolean;
offsetX: SharedValue<number>;
handlerOffset: SharedValue<number>;
layoutConfig: TAnimationStyle;
renderItem: CarouselRenderItem<any>;
customAnimation?: (value: number, index: number) => ViewStyle;
}
export declare const ItemRenderer: FC<Props>;
export {};