Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 4d2adea

Browse files
committed
Fix build error in list.js
1 parent 3cb6e34 commit 4d2adea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/component/list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ export class List extends Component {
5757
dataSource={this.dataSource}
5858
renderHeader={this.props.renderHeader}
5959
renderRow={data => {
60-
this.props.scrollToEnd
61-
? setTimeout(() => this.list._scrollViewRef.scrollToEnd(), 50)
62-
: null;
60+
if (this.props.scrollToEnd) {
61+
setTimeout(() => this.list._scrollViewRef.scrollToEnd(), 50);
62+
}
6363
return this.props.renderItem(data);
6464
}}
6565
enableEmptySections={true}

0 commit comments

Comments
 (0)