Skip to content

Commit fc28926

Browse files
committed
3.0.14
修正: 1. 空视图让SpringScrollView自动填充满 2. 允许用户自定义自己的Item的key
1 parent eb8ce51 commit fc28926

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

android/app/app.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
125125
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
126126
</content>
127-
<orderEntry type="jdk" jdkName="Android API 28 Platform" jdkType="Android SDK" />
127+
<orderEntry type="jdk" jdkName="Android API 28 Platform (1)" jdkType="Android SDK" />
128128
<orderEntry type="sourceFolder" forTests="false" />
129129
<orderEntry type="library" name="Gradle: com.squareup.okhttp3:okhttp-urlconnection:3.12.1@jar" level="project" />
130130
<orderEntry type="library" name="Gradle: com.facebook.fresco:fresco:1.10.0@aar" level="project" />

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "28.0.3"
6-
minSdkVersion = 16
5+
buildToolsVersion = "26.0.3"
6+
minSdkVersion = 20
77
compileSdkVersion = 28
88
targetSdkVersion = 28
99
supportLibVersion = "28.0.0"

src/Group.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ export class Group extends React.Component<GroupPropType> {
7272
transform: [{ scaleY: inverted ? -1 : 1 }]
7373
}
7474
]);
75+
const key = cell.props.key ? cell.props.key : index;
7576
return React.cloneElement(cell, {
76-
key: index,
77+
key,
7778
style
7879
});
7980
});

src/LargeList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ export class LargeList extends React.PureComponent<LargeListPropType> {
311311
_renderEmpty() {
312312
return (
313313
<SpringScrollView
314+
contentStyle={{flex:1}}
314315
{...this.props}
315316
ref={this._scrollView}
316317
onSizeChange={this._onSizeChange}

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-largelist-v3",
3-
"version": "3.0.13",
3+
"version": "3.0.14",
44
"private": false,
55
"description": "The best performance large list component which is much better than SectionList for React Native.",
66
"author": "bolan9999 <[email protected]>",

0 commit comments

Comments
 (0)