@karrotframe/pulltorefresh
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @karrotframe/pulltorefresh

Weekly Downloads

1

Version

0.1.4

License

Apache-2.0

Unpacked Size

102 kB

Total Files

9

Last publish

Collaborators

  • irrationnelle
  • tonyfromundefined