Skip to content

Commit e35294b

Browse files
committed
Add case for sectionlist in onContentSizeChange
1 parent 7a3409b commit e35294b

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)