-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 文档完善 2. 修正inverted时,安卓API 28以上设备滑动回弹方向错误的问题。 3. 修正在react-native0.59安卓API 28上崩溃的问题
- Loading branch information
Showing
8 changed files
with
98 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Overview | ||
`StickyForm`是一个支持水平垂直双吸边的组件。它会把`renderHeader`,`renderSection`,`renderIndexPath`,`renderFooter`返回的element的子节点切片,并且让他们的第一个节点自动吸住左边。 配合LargeList的headerStickyEnabled,可以把头部吸在列表的顶部,然后把Section吸在头部的下面。具体示例见下面动图: | ||
|
||
### 预览 | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Usage | ||
|
||
属性 | 类型 | 默认值 | 描述 | ||
---- | ------ | --------- | -------- | ||
...LargeList | - | - | 支持所有的LargeList属性(含刷新及加载)。 | ||
directionalLockEnabled | boolean | true | 当此属性为true时,它会试着锁定只在水平或垂直一个方向上滚动。 | ||
headerStickyEnabled | boolean | true | 将头部吸在StickForm的顶部,Section跟着吸在头部的下边。 | ||
|
||
|
||
### Precautions | ||
它会把`renderHeader`,`renderSection`,`renderIndexPath`,`renderFooter`返回节点的子节点切片,并且让他们的第一个节点自动吸住左边。 配合LargeList的headerStickyEnabled,可以把头部吸在列表的顶部,然后把Section吸在头部的下面。. 具体可以查看示例 [StickyFormExample](https://github.com/bolan9999/react-native-largelist/blob/master/Examples/StickyFormExamples/StickyFormExample.js) . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# 基本用法 | ||
# Usage | ||
|
||
Props | Type | Default | Description | ||
---- | ------ | --------- | -------- | ||
[...SpringScrollView](https://bolan9999.github.io/react-native-spring-scrollview/#/) | - | - | 支持几乎所有SpringScrollView的属性(包含自定义刷新及自定义加载)。 | ||
data | any[] | required | 数据源,数组的个数决定了Item的数量 | ||
heightForItem | (item:any,index:number)=> number | 必需 | 一个高度函数,用以返回每个Item的高度 | ||
renderItem | (item:any,index:number)=> React.ReactElement<any> | 必需 | 每个Item的render函数 | ||
preferColumnWidth | number | undefined | 每个Item的理想宽度, 它会影响实际列数,实际列数等于WaterfallList除以理想宽度向下取整,实际宽度是组件宽度除以实际列数(目前只支持等宽的Item).(`preferColumnWidth` 和 `numColumns` 至少需要指定一个. ) | ||
numColumns | number | undefined | 固定列数. (`preferColumnWidth` 和 `numColumns` 至少需要指定一个. ) | ||
renderHeader | ()=> React.ReactElement <any> | undefined | 头部组件函数 | ||
renderFooter | ()=> React.ReactElement <any> | undefined | 尾部组件函数 | ||
|
||
<!--对不起,这是收费的,请联系 `[email protected]`--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "react-native-largelist-v3", | ||
"version": "3.0.10", | ||
"version": "3.0.11", | ||
"private": false, | ||
"description": "The best performance large list component which is much better than SectionList for React Native.", | ||
"author": "bolan9999 <[email protected]>", | ||
|