Refresh your screen with react native customizable refresh control
npm install react-native-custom-refresh-controlThis module include custom react native refresh control.
```
$ npm install --save react-native-custom-refresh-control
import { CustomRefreshControl } from 'react-native-custom-refresh-control';
All parameters are optional.
ScrollView
`javascript`
}
>
FlatList
`javascript`
}
>
| Prop | Type | Default | Description | Required |
| ------------------------ | --------- | ------- | ----------------------------------------------------------------------------------------------------- | -------- |
| callbackError | function | () => {} | In case of error setClearedInterval function with catched error | No |callback
| | function | null | Your callback, for example, for data processing during a refresh | No |callbackParams
| | any | undefined | Any set of parameters when calling prop callback | No |delay
| | number | null | Set duration of refresh, regardless of prop callback | No |delayCallback
| | function | () => {} | With the correct prop duration, you can specify a callback for setTimeout | No |controlParams
| | object | {}` |Other parameters for refresh control (style, colors, etc) | No |
* React-Native
* Prop-Types
* React
This project is licensed under the MIT License - see the LICENSE.md file for details