Skip to content

Commit 5b205fe

Browse files
authored
Merge pull request #476 from jemise111/fix-sectionlist-oncontentsizechange
Add case for sectionlist in onContentSizeChange
2 parents 7a3409b + e35294b commit 5b205fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/SwipeListView.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ class SwipeListView extends PureComponent {
137137
if (this.yScrollOffset >= height && height > 0) {
138138
if (this._listView instanceof FlatList) {
139139
this._listView && this._listView.scrollToEnd();
140+
} else if (this._listView instanceof SectionList) {
141+
this._listView.scrollToEnd && this._listView.scrollToEnd();
140142
} else if (this._listView instanceof Animated.FlatList) {
141143
this._listView.scrollToEnd && this._listView.scrollToEnd();
142144
}

0 commit comments

Comments
 (0)