@flexn/shopify-flash-list
Version:
FlashList is a more performant FlatList replacement
29 lines (24 loc) • 815 B
text/typescript
import { BaseItemAnimator } from "@flexn/recyclerlistview";
const PlatformConfig = {
defaultDrawDistance: 250,
// Using rotate instead of scaleY on Android to avoid performance issues. Issue: https://github.com/Shopify/flash-list/issues/751
invertedTransformStyle: { transform: [{ rotate: "180deg" }] },
};
const getCellContainerPlatformStyles = (
inverted: boolean,
parentProps: { x: number; y: number; isHorizontal?: boolean }
): { transform: string; WebkitTransform: string } | undefined => {
return undefined;
};
const getItemAnimator = (): BaseItemAnimator | undefined => {
return undefined;
};
const getFooterContainer = (): React.ComponentClass | undefined => {
return undefined;
};
export {
PlatformConfig,
getCellContainerPlatformStyles,
getItemAnimator,
getFooterContainer,
};