@karrotframe/pulltorefresh
v0.1.4
Published
UX Enhancer
Downloads
8
Readme
Pull to Refresh UI for React
Setup
$ yarn add @karrotframe/pulltorefresh
Should import the CSS of your app
import '@karrotframe/pulltorefresh/index.css'
import { ... } from '@karrotframe/pulltorefresh'
Components
PullToRefresh
All the props is typed and commented in TypeScript
import { PullToRefresh } from '@karrotmarket/pulltorefresh'
const App: React.FC = () => {
return (
<PullToRefresh
onPull={(dispose) => {
refresh().then(() => {
dispose()
})
}}
>
Hello, World
</PullToRefresh>
)
}
export default App