https://github.com/hanai/rax-pull-to-refresh-indicator
https://github.com/hanai/rax-pull-to-refresh-indicator
component pull-to-refresh rax
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hanai/rax-pull-to-refresh-indicator
- Owner: hanai
- Created: 2020-05-02T05:53:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T15:59:47.000Z (over 3 years ago)
- Last Synced: 2025-03-18T12:57:33.663Z (about 1 year ago)
- Topics: component, pull-to-refresh, rax
- Language: TypeScript
- Size: 4.92 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## rax-pull-to-refresh-indicator
## Install
```
$ npm install rax-pull-to-refresh-indicator --save
```
## Usage
```
import PullToRefreshIndicator from 'rax-pull-to-refresh-indicator';
```
## API
### Props
|name|type|default|describe|
|:---------------|:--------|:----|:----------|
| state | PullToRefreshState | - | pull to refresh state |
| hasIcon | string | true | has icon in indicator |
| hasText | string | true | has text in indicator |
## Example
```
import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import PullToRefreshIndicator, { PullToRefreshState } from 'rax-pull-to-refresh-indicator';
render(, document.body, { driver: DriverUniversal });
```