0.1.4 • Published 2 years ago

@karrotframe/pulltorefresh v0.1.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

npm.io npm.io npm.io

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
0.1.4

2 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago