0.1.2 • Published 7 years ago

reactscroller v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

usage

npm i reactscroller --save

and then you can(ES6):

import ReactScoller from "reactscroller";

or:

var ReactScoller = require("reactscroller");

You can visit ReactScrollerExample to find more details for usage.

The following is a list of incoming properties:

propertyOptionalDefaultdescriptiontype
containerHeightNecessarynullThe height for the outer container to scrollString | Number
containerWidthOptional100%The width for the outer container to scrollString | Number
refreshOptionalnullThe function for pull down to refreshFunction
loadMoreOptionalnullThe function for scroll up to load moreFunction
lowerBoundOptional50The distance to the bottom when trigger the function loadmoreNumber
refreshTipNecessarynullThe refreshTip for the different stages of refreshing(a property of this.state is better. It should be changed)String or Component
loadMoreTipNecessarynullThe loadmoreTip for the different stages of loading more (a property of this.state is better. It should be changed)String or Component
showRefreshNecessarynullWhether the refreshTip should be displayedbool
showLoadMoreNecessarynullWhether the loadMoreTip should be displayedbool

Advanced

I peeled off the core module and the presentation module during the coding phase. So you can use the ReactScrollerCore to make more customization.

import {ReactScrollerCore} from "reactscroller";

I continue thinking and testing, if you have some good ideas please visit issues

License

MIT

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago