UNPKG

1.06 kBTypeScriptView Raw
1import React from 'react';
2import { PropsType } from './PropsType';
3export default class PullToRefresh extends React.Component<PropsType, any> {
4 static defaultProps: PropsType;
5 state: {
6 currSt: string;
7 dragOnEdge: boolean;
8 };
9 containerRef: any;
10 contentRef: any;
11 _to: any;
12 _ScreenY: any;
13 _startScreenY: any;
14 _startScreenX: any;
15 _lastScreenY: any;
16 _timer: any;
17 _isMounted: boolean;
18 shouldUpdateChildren: boolean;
19 shouldComponentUpdate(nextProps: any): boolean;
20 componentDidUpdate(prevProps: any): void;
21 componentDidMount(): void;
22 componentWillUnmount(): void;
23 triggerPullToRefresh: () => void;
24 init: (ele: any) => void;
25 destroy: (ele: any) => void;
26 onTouchStart: (_ele: any, e: any) => void;
27 isEdge: (ele: any, direction: string) => boolean | undefined;
28 damping: (dy: number) => number;
29 onTouchMove: (ele: any, e: any) => void;
30 onTouchEnd: () => void;
31 reset: () => void;
32 setContentStyle: (ty: number) => void;
33 render(): JSX.Element;
34}