Skip to content

Repository files navigation

rmc-pull-to-refresh


React Mobile PullToRefresh Component.

NPM versionbuild statusTest coveragegemnasium depsnpm download

Screenshots

Development

npm install
npm start

Example

http://localhost:8899/examples/

online example: http://react-component.github.io/m-pull-to-refresh/

install

rmc-pull-to-refresh

Usage

see example

API

props

namedescriptiontypedefault
directionpull direction, can be up or downStringdown
distanceToRefreshdistance to pull to refreshnumber50
refreshingWhether the view should be indicating an active refreshboolfalse
onRefreshCalled when the view starts refreshing.() => void-
indicatorindicator configObject{ activate: 'release', deactivate: 'pull', release: 'loading', finish: 'finish' }
classNameadditional css class of root dom nodeString-
prefixClsprefix classString'rmc-pull-to-refresh'
dampingpull damping, suggest less than 200number100
scaledamping scalenumber0.6

Test Case

npm test

Coverage

npm run coverage

License

rmc-pull-to-refresh is released under the MIT license.

About

React Mobile Pull To Refresh

Resources

Stars

164 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages