Skip to content

Commit 49ac32f

Browse files
author
石破天惊
authored
Merge pull request #51 from bolan9999/develop
Version 1.2.2
2 parents c55ccdc + c78ea84 commit 49ac32f

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

README-cn.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ For English docs [click here](./README.md)
77
## 特点
88
* react-native-largelist 比官网的SectionList CPU和内存占用更少,性能表现更好,在最坏的情况下(比如从第一行直接用代码滑动到第1000行),即使出现白板,也是瞬间消失。
99
* 支持超大数据源,支持无限列表,支持超快速度滑动。
10-
* 跨平台,兼容iOS和Android。
10+
* 跨平台,兼容iOS和Android。优化自ScrollView,对RN版本兼容性好。
1111
* 支持分组,支持每组头视图自动吸顶,新的Section挂在列表顶部时,支持回调。
1212
* 行组件进入或离开安全区域时可配置回调事件。
1313
* 支持单独的头部、尾部和空视图。
@@ -110,6 +110,18 @@ refreshing | boolean | undefined | 是否正在刷新
110110
onRefresh | () => any | undefined | 下拉刷新的回调,如果用户设置了此属性,则添加一个刷新控件
111111
onScroll | ({nativeEvent:{contentOffset:{x:number,y:number}}})=> any | | 滑动的回调,同官方ScrollView
112112

113+
注意:
114+
115+
* 不同于FlatList,LargeList是惰性的,不会立即重新计算布局,当您的数据源改变的时候,影响到以下因素时,必须调用[reloadData](#reloaddata)重新布局
116+
117+
1. 头部和尾部高度变化
118+
119+
2. 任何一行Cell或Section高度变化
120+
121+
3. 任何一组Section下的Cell数量变化
122+
123+
4. Section数量变化
124+
113125
## 原理
114126
在了解高级用法之前,我们先要了解下基本原理:
115127

@@ -332,6 +344,13 @@ onScroll | ({nativeEvent:{contentOffset:{x:number,y:number}}})=> any | | 滑动
332344

333345
## 更新日志
334346

347+
### 版本 1.2.2
348+
* 修复onLargeListDidUpdate的回调时机问题
349+
* 支持TypeScript
350+
351+
### 版本 1.2.1
352+
* 修复左右滑动编辑过程中,上下滑动的问题
353+
335354
### 版本 1.2.0
336355
* 添加左右滑动编辑功能
337356
* 添加空视图

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
* The performance of react-native-largelist is much better than FlatList and SectionList.And lower CPU/Memory usage.
1010
* Large data source supported, infinite data supported, super fast sliding support.
11-
* Full cross-platform.
11+
* Full cross-platform,Optimize from ScrollView, better version compatibility.
1212
* Sticky Section support.
1313
* Callback when Cell/Item enter/leave the safeArea support.
1414
* List header/footer/empty support.
@@ -111,6 +111,10 @@ refreshing | boolean | undefined | refreshing
111111
onRefresh | () => any | undefined | callback of pulling to refresh,if not undefined ,a default RefreshControl is add to LargeList
112112
onScroll | ({nativeEvent:{contentOffset:{x:number,y:number}}})=> any | | Callback when scrolling.
113113

114+
Notice:
115+
116+
* If your data source change and it affects the number of sections or the number of cells in section, or the height of any sections or cells, you must call [reloadData](#reloaddata)
117+
114118
## Principle
115119
Before we learn advanced usage, we must first understand the basic principles:
116120

@@ -332,6 +336,13 @@ Get LargeList's footer height
332336

333337
## Update Log
334338

339+
### Version 1.2.2
340+
* Fix bug on onLargeListDidUpdate
341+
* Support TypeScript
342+
343+
### Version 1.2.1
344+
* Fix bug when swipe out.
345+
335346
### Version 1.2.0
336347
* Add swiping left and right to edit cell
337348
* Add empty view

0 commit comments

Comments
 (0)