react-ptr v0.0.5
React PTR - Pull To Refresh
One mobile pull to refresh React component for all. Plug and play, highly customizable with many loaders provided!

Installation
With NPM
npm i react-ptr --save-devImport to your app
import { PullToRefresh, Loaders } from 'react-ptr';
import 'react-ptr/style.min.css';Use with react
const App = () => (
<PullToRefresh loaders={Loaders.Material}>
<p> Your content here ... </p>
</PullToRefresh>
)Properties
height : stringheight for the container, use string like '10px', default for '100%'onRefresh : funccallback when refresh is request, pass resolve function as first parameters, default 2000ms auto resolveloader : shape(optional) loader configuration shape consists of following propertiesmode : string(optional) the method to display the loader container, chocie of usingmarginToporabsoluteloaderHeight : number(optional) the height of loader in px, applied to the container when user pull the containerloaderLoadingHeight : number(optional) the height of loader in px while in its loading state, default to equal to loaderHeightloaderDefaultIcon : func(optional) a function that return an react element, pass in progress(1-100) as it's first parameterloaderLoadingIcon : element(optional) a react element that display while loader in it's loading state