recyclerlistview
Version:
The listview that you need and deserve. It was built for performance, uses cell recycling to achieve smooth scrolling.
19 lines (18 loc) • 738 B
TypeScript
import * as React from "react";
export declare abstract class ComponentCompat<T1 = {}, T2 = {}, SS = any> extends React.Component<T1, T2, SS> {
private _hasRenderedOnce;
private _didPropsChange;
constructor(props: T1, context?: any);
shouldComponentUpdate(newProps: T1, newState: T2): boolean;
/**
* allow the extended component to access _hasRenderedOnce flag
* to ensure that the component has rendered at least once
* @returns _hasRenderedOnce
*/
getHasRenderedOnce(): boolean;
componentWillReceivePropsCompat(newProps: T1): void;
componentWillMountCompat(): void;
componentWillUpdateCompat(): void;
render(): React.ReactNode;
abstract renderCompat(): React.ReactNode;
}