UNPKG

@shopify/flash-list

Version:

FlashList is a more performant FlatList replacement

30 lines (25 loc) 883 B
import { BaseItemAnimator } from "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" }] }, invertedTransformStyleHorizontal: { 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, };