1.0.1 • Published 5 years ago

rax-pull-to-refresh-indicator v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

rax-pull-to-refresh-indicator

Install

$ npm install rax-pull-to-refresh-indicator --save

Usage

import PullToRefreshIndicator from 'rax-pull-to-refresh-indicator';

API

Props

nametypedefaultdescribe
statePullToRefreshState-pull to refresh state
hasIconstringtruehas icon in indicator
hasTextstringtruehas text in indicator

Example

import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import PullToRefreshIndicator, { PullToRefreshState } from 'rax-pull-to-refresh-indicator';

render(<PullToRefreshIndicator state={PullToRefreshState.REFRESHING} />, document.body, { driver: DriverUniversal });