1.0.3 • Published 4 years ago

react-native-customizable-refresh-control v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

React Native Customizable Refresh Control

This module include customizable react native refresh control.

Installation

$ npm install --save react-native-customizable-refresh-control

Usage

import { CustomizableRefreshControl } from 'react-native-customizable-refresh-control';

All parameters are optional.

Prop from React Native: style. https://github.com/facebook/react-native/issues/11784

Basic Usage

ScrollView

<ScrollView
  refreshControl={
    <CustomRefreshControl callback={() => {}} callbackError={e => {}} />
  }
>

FlatList

<FlatList
  refreshControl={
    <CustomRefreshControl callback={() => {}} callbackError={e => {}} />
  }
>

Props

PropTypeDefaultDescriptionRequired
callbackErrorfunction() => {}In case of error setClearedInterval function with catched errorNo
callbackfunctionnullYour callback, for example, for data processing during a refreshNo
callbackParamsanyundefinedAny set of parameters when calling prop callbackNo
delaynumbernullSet duration of refresh, regardless of prop callbackNo
delayCallbackfunction() => {}With the correct prop duration, you can specify a callback for setTimeoutNo
controlParamsobject{}Other parameters for refresh control (style, colors, etc)No

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago