# react-pull-to-refresh
**Repository Path**: mirrors_fis-components/react-pull-to-refresh
## Basic Information
- **Project Name**: react-pull-to-refresh
- **Description**: Fork from https://github.com/bryaneaton13/react-pull-to-refresh.git
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-05-02
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# react-pull-to-refresh
`npm install react-pull-to-refresh`
A pull to refresh component for the web.
Based on Andy Peatling's [Pull to Refresh for the Web](https://github.com/apeatling/web-pull-to-refresh)

## Usage
Your refresh handler function takes in `resolve` and `reject` to tell the PullToRefresh component when it's finished.
```javascript
handleRefresh(resolve, reject) {
// do some async code here
if (success) {
resolve();
} else {
reject();
}
}
```
Where you want to render the component:
```xml
Pull down to refresh