Skip to content

Commit

Permalink
Merge pull request #476 from jemise111/fix-sectionlist-oncontentsizec…
Browse files Browse the repository at this point in the history
…hange

Add case for sectionlist in onContentSizeChange
  • Loading branch information
jemise111 authored Jun 5, 2020
2 parents 7a3409b + e35294b commit 5b205fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/SwipeListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ class SwipeListView extends PureComponent {
if (this.yScrollOffset >= height && height > 0) {
if (this._listView instanceof FlatList) {
this._listView && this._listView.scrollToEnd();
} else if (this._listView instanceof SectionList) {
this._listView.scrollToEnd && this._listView.scrollToEnd();
} else if (this._listView instanceof Animated.FlatList) {
this._listView.scrollToEnd && this._listView.scrollToEnd();
}
Expand Down

0 comments on commit 5b205fe

Please sign in to comment.