New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-scrollrefresh

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-scrollrefresh - npm Package Compare versions

Comparing version 0.0.1 to 0.9.0

2

package.json
{
"name": "react-scrollrefresh",
"version": "0.0.1",
"version": "0.9.0",
"description": "React ScrollRefresh is a React component which enables refresh via scoll",

@@ -5,0 +5,0 @@ "main": "index.js",

# react-scrollrefresh
React ScrollRefresh is a React component which enables refresh via scoll
## install
```
npm install react-scrollrefresh --save
```
| properties | type | description|
|--------------|------------------------------|------------|
| height | int | 容器高度,需要设置合适的高度,复杂无法出现滚动条 |
| width | int | 容器宽度 |
|fetchNextData | function(currentPos, pageNo) | 获得下一页数据,currentPos为当前位置,从0开始;pageNo为当前页码,从1开始 |
| synch | boolean | 是否同步执行数据查询,缺省:false|
| nextData | Array | 异步(synch=false)时,通过nextData通知组件数据更新,这个数据只包含当前页的数据。|
| loading | React Component | 自定义loading |
## example
```
<ScrollRefresh height={150} width={300}
fetchNextData={this.fetchNextData.bind(this)}
nextData={this.state.nextData}/>
<ScrollRefresh height={150} width={300}
fetchNextData={this.fetchSynchNextData.bind(this)}
synch/>
```
## license
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc