/m-pull-to-refresh

React Mobile Pull To Refresh

Primary LanguageJavaScript

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'
icon arrow element React element -
loading loading element React element -
distanceToRefresh distanceToRefresh number 70
resistance resistance number 2.5
loadingFunction return a promise function, required -

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.