https://github.com/darmody/react-native-refresh-control-view
customize react native refresh control
https://github.com/darmody/react-native-refresh-control-view
pull-to-refresh react-native refresh-control
Last synced: about 1 year ago
JSON representation
customize react native refresh control
- Host: GitHub
- URL: https://github.com/darmody/react-native-refresh-control-view
- Owner: Darmody
- Created: 2019-03-25T05:12:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-28T05:52:58.000Z (about 7 years ago)
- Last Synced: 2025-04-30T10:16:24.610Z (about 1 year ago)
- Topics: pull-to-refresh, react-native, refresh-control
- Language: TypeScript
- Homepage:
- Size: 588 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# React Native Refresh Control View

Let you have ability to customize refresh control.
**NOT READY YET**

## Install
```bash
# peer dependency
yarn add react-native-gesture-handler
yarn add react-native-customizable-refresh-control-view
```
## Usage
```jsx
import React from 'react';
import { Text } from 'react-native';
import { ScrollView } from 'react-native-customizable-refresh-control-view';
class RefreshControl extends React.Component {
render() {
return Refreshing...;
}
}
class ReactComponent extends React.Component {
handlePullRefresh = () => {
// refreshing, you can return promise here.
};
render() {
return (
...content
);
}
}
```