0.0.2 • Published 8 years ago
react-web-pull-to-refresh v0.0.2
react-web-pull-to-refresh
A pull to refresh React component.
Installation
npm install --save react-web-pull-to-refreshUsage
react-web-pull-to-refresh provides PullDownToRefresh component.
API
<PullDownToRefresh />
A pull to refresh component. Please wrap a content which should be pull down area.
className (string): CSS class name forPullDownToRefreshdisplayFlag (boolean): displayFlag for loading areapullDownHandler (Function): pull down handlerborderHeight (number): loading area settingheight (number): loading area settingfontSize (string): loading area settingthreshold (number): loading area settingloadingContent (string | React.Element<*>): loading area setting
Development
Setup
npm install --global yarn
yarn install
yarn buildStart dev server for examples
yarn startOpen http://localhost:8080/.
Run test
yarn testCommit Message Format
Each commit message consists of some types, a subject.
<type>: <subject>
<BLANK LINE>
<body>Type
Type Must be one of the following:
- feat: A new feature
- fix: A bug fix
- workaround: A workaround
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing or correcting existing tests
- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
TODO:
- Add useful tests.
- Add
PullUpToRefreshcomponent
Reference Implementation
- https://github.com/ErlendEllingsen/pull-to-reload
- https://gist.github.com/youcune/551f082b6cabe4f4ae5c
- http://qiita.com/zeriyoshi/items/d73d6712400d75dc8bea
Changelog
See the Releases page on GitHub.
License
MIT
Author
Kazuhiko Mori (mori.dev.asdf@gmail.com)