Skip to content

y-marion/m-pull-to-refresh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

for details see: https://github.com/apeatling/web-pull-to-refresh

props

name description type default
className additional css class of root dom node String
prefixCls prefix class String 'rmc-pull-to-refresh'
style container style object -
icon arrow element React element -
loading loading element React element -
distanceToRefresh distanceToRefresh number 50
loadingFunction return a promise function, required -
scrollerOptions be used to configure the scroller. object { scrollingX: false }

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

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

Packages

No packages published

Languages

  • JavaScript 88.7%
  • CSS 11.3%