recyclerlistview
Version:
The listview that you need and deserve. It was built for performance, uses cell recycling to achieve smooth scrolling.
18 lines (17 loc) • 926 B
TypeScript
/**
* Created by ananya.chandra on 20/09/18.
*/
import StickyObject, { StickyObjectProps } from "./StickyObject";
export interface StickyFooterProps extends StickyObjectProps {
alwaysStickyFooter?: boolean;
}
export default class StickyFooter<P extends StickyFooterProps> extends StickyObject<P> {
constructor(props: P, context?: any);
onScroll(offsetY: number): void;
protected initStickyParams(): void;
protected calculateVisibleStickyIndex(stickyIndices: number[] | undefined, _smallestVisibleIndex: number, largestVisibleIndex: number, offsetY: number, windowBound?: number): void;
protected getNextYd(nextY: number, nextHeight: number): number;
protected getCurrentYd(currentY: number, currentHeight: number): number;
protected getScrollY(offsetY: number, scrollableHeight: number): number | undefined;
protected hasReachedBoundary(offsetY: number, windowBound?: number): boolean;
}