react-native-animated-content-scroll
Version:
Animated content scroll component for React Native with directional slide-in animations
29 lines • 820 B
TypeScript
import type { ReactNode } from "react";
export type AnimationDirection = "left" | "right" | "top" | "bottom";
export type PropsAnimatedScrollContent = {
children: ReactNode;
index?: number;
direction?: AnimationDirection;
distance?: number;
duration?: number;
margin?: number;
};
export interface ListItem {
id: string | number;
[key: string]: any;
}
export type AnimatedListProps<T extends ListItem> = {
items: T[];
renderItem: (item: T, index: number) => ReactNode;
direction?: AnimationDirection;
distance?: number;
duration?: number;
margin?: number;
keyExtractor?: (item: T) => string | number;
};
export interface InternalItem<T> extends ListItem {
data: T;
isExiting: boolean;
hasEntryAnimated: boolean;
}
//# sourceMappingURL=types.d.ts.map