1.0.0 • Published 4 years ago

rmc-pull-to-refresh-mouses v1.0.0

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

rmc-pull-to-refresh


React Mobile PullToRefresh Component.

NPM version build status Test coverage gemnasium deps npm 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.