@huds0n/components
Version:
Enhanced React Native components
18 lines • 1.04 kB
TypeScript
/// <reference types="react" />
import { ListRenderItemInfo } from "react-native";
import type { Types } from "../types";
export declare function getKeyExtractor({ keyName, keyExtractor, }: Types.FlatListProps): {
keyExtractor: ((item: any) => any) | ((item: any, index: number) => string) | undefined;
};
export declare function getRefreshControl({ activityIndicatorColor, onPullToRefresh, refreshControl, }: Types.FlatListProps): {
refreshControl: JSX.Element | undefined;
};
export declare function handleDynamicScrollLayout({ onContentSizeChange, onLayout, onPullToRefresh, refreshControl, scrollEnabled, }: Types.FlatListProps): {
onLayout: (event: import("react-native").LayoutChangeEvent) => void;
onContentSizeChange: (w: number, h: number) => void;
scrollEnabled: boolean;
};
export declare function handleZIndex({ CellRendererComponent, reverseZIndex, }: Types.FlatListProps): {
CellRendererComponent: (info: ListRenderItemInfo<any>) => JSX.Element;
} | undefined;
//# sourceMappingURL=helpers.d.ts.map