1 | import { ComponentType } from 'react'
|
2 |
|
3 | interface Indicator {
|
4 | activate?: React.ReactNode
|
5 | deactivate?: React.ReactNode
|
6 | release?: React.ReactNode
|
7 | finish?: React.ReactNode
|
8 | }
|
9 |
|
10 | interface PullToRefreshProps {
|
11 | refreshing?: boolean
|
12 | distanceToRefresh: number
|
13 | onRefresh: () => void
|
14 | indicator: Indicator
|
15 | prefixCls?: string
|
16 | className?: string
|
17 | style?: React.CSSProperties
|
18 | damping: number
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | declare const PullToRefresh: ComponentType<PullToRefreshProps>
|
25 |
|
26 | export { PullToRefresh, PullToRefreshProps }
|