bdyl-pull-to-refresh
Version:
React Mobile Pull To Refresh Component
31 lines (30 loc) • 1 kB
TypeScript
/// <reference types="react" />
import React from 'react';
import { PropsType } from './PropsType';
export default class PullToRefresh extends React.Component<PropsType, any> {
static defaultProps: PropsType;
containerRef: any;
contentRef: any;
_to: any;
_ScreenY: any;
_startScreenY: any;
_lastScreenY: any;
_timer: any;
_direction: string;
shouldUpdateChildren: boolean;
constructor(props: any);
shouldComponentUpdate(nextProps: any): boolean;
componentDidUpdate(prevProps: any): void;
componentDidMount(): void;
componentWillUnmount(): void;
triggerPullToRefresh: (direction: string) => void;
init: (ele: any) => void;
destroy: (ele: any) => void;
onTouchStart: (_ele: any, e: any) => void;
isEdge: (ele: any, direction: string) => boolean | undefined;
onTouchMove: (ele: any, e: any) => void;
onTouchEnd: () => void;
reset: () => void;
setContentStyle: (ty: number) => void;
render(): JSX.Element;
}