react-pullrefresh
Pull to reflesh material design component.
react-native is supported.
Demo
https://yusukeshibata.github.io/react-pullrefresh/
Install
npm install react-pullrefresh
Usage
// onRefresh function canbe async/sync async { await } // Without children PullRefresh element observe document.body's scroll { return <PullRefresh onRefresh=::thisonRefresh > </PullRefresh> }
Behaviour difference between v1/v2
TODO:
Props
render
TODO:
color
default: #787878
bgColor
default: #ffffff
disabled
disable component
default: false
zIndex
specify css z-index.
default: undefined
onRefresh
{ //...some async function}
style
container style.
default: undefined
Removed props
- size
- offset
- max
- waitingComponent
- pullingComponent
- pulledComponent
- supportDesktop
License
MIT