React pull to refresh
npm install react-js-pull-to-refreshPull to refresh with react
> Support all mobile(iOS, Android) and Desktop browser (Chrome, Safari, firefox, Opera, QQ, UC, ... etc)





bash
npm install react-js-pull-to-refresh --save
`or
`bash
yarn add react-js-pull-to-refresh
`Props
|Name|Type|Required
|:------:|:------:|:------:|
|pullDownContent|JSX.Element|true|
|releaseContent|JSX.Element|true|
|refreshContent|JSX.Element|true|
|pullDownThreshold|number|true|
|onRefresh|Promise|true|
|triggerHeight|number or 'auto'|false|
|backgroundColor|string|false|
|startInvisible|boolean|false|Usage
$3
`js
import {PullToRefresh} from "react-js-pull-to-refresh";
`$3
`typescript
import {PullDownContent, ReleaseContent, RefreshContent} from "react-js-pull-to-refresh";
`
$3
`jsx
pullDownContent={ }
releaseContent={ }
refreshContent={ }
pullDownThreshold={200}
onRefresh={this.onRefresh}
triggerHeight={50}
backgroundColor='white'
startInvisible={true}
>
PullToRefresh
`$3
LinkContributing
`bash
npm run dev
``