React Mobile PullToRefresh Component.
npm install
npm start
http://localhost:8899/examples/
online example: http://react-component.github.io/m-pull-to-refresh/
see example
for details see: https://github.com/apeatling/web-pull-to-refresh
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 } |
npm test
npm run chrome-test
npm run coverage
open coverage/ dir
rmc-pull-to-refresh is released under the MIT license.