react-native-reanimated-carousel
Version:
Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.
23 lines (22 loc) • 664 B
TypeScript
declare type BaseParams<T extends object = {}> = {
autoFillData: boolean;
loop: boolean;
} & T;
export declare function convertToSharedIndex(params: BaseParams<{
index: number;
rawDataLength: number;
}>): number;
export declare function computedOffsetXValueWithAutoFillData(params: BaseParams<{
rawDataLength: number;
value: number;
size: number;
}>): number;
export declare function computedRealIndexWithAutoFillData(params: BaseParams<{
index: number;
dataLength: number;
}>): number;
export declare function computedFillDataWithAutoFillData<T>(params: BaseParams<{
data: T[];
dataLength: number;
}>): T[];
export {};