Skip to content

Commit

Permalink
Merge pull request #647 from shoutem/release/4.6.4
Browse files Browse the repository at this point in the history
Release/4.6.4 - master
  • Loading branch information
tomislav-arambasic authored Oct 15, 2021
2 parents a9370e9 + 30f4776 commit eebb18b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions components/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ class ListView extends PureComponent {
// reference
mappedProps.ref = this.handleListViewRef;

mappedProps.onMomentumScrollBegin = this.setIsScrolling(true);
mappedProps.onMomentumScrollEnd = this.setIsScrolling(false);
mappedProps.onMomentumScrollBegin = this.setStartedScrolling;

mappedProps.onMomentumScrollEnd = this.setEndedScrolling;

return mappedProps;
}
Expand All @@ -221,8 +221,12 @@ class ListView extends PureComponent {
}
}

setIsScrolling(isScrolling) {
this.setState({ isScrolling });
setStartedScrolling() {
this.setState({ isScrolling: true });
}

setEndedScrolling() {
this.setState({ isScrolling: true });
}

autoHideHeader({
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shoutem/ui",
"version": "4.6.3",
"version": "4.6.4",
"description": "Styleable set of components for React Native applications",
"scripts": {
"lint": "eslint .",
Expand Down

0 comments on commit eebb18b

Please sign in to comment.