Skip to content

Commit

Permalink
Merge pull request #523 from shoutem/release/4.0.4
Browse files Browse the repository at this point in the history
Release/4.0.4
  • Loading branch information
majaklajic authored Sep 14, 2020
2 parents 26c1d93 + b98eddd commit 88120a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion components/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ListView extends PureComponent {
data: PropTypes.array,
loading: PropTypes.bool,
onLoadMore: PropTypes.func,
onLoadMoreThreshold: PropTypes.number,
onRefresh: PropTypes.func,
getSectionId: PropTypes.func,
sections: PropTypes.array,
Expand Down Expand Up @@ -119,6 +120,7 @@ class ListView extends PureComponent {
renderFeaturedItem,
renderSectionHeader,
onRefresh,
onLoadMoreThreshold,
keyExtractor,
} = this.props;
const { refreshing } = this.state;
Expand All @@ -128,7 +130,7 @@ class ListView extends PureComponent {

// configuration
// default load more threshold
mappedProps.onEndReachedThreshold = 40;
mappedProps.onEndReachedThreshold = onLoadMoreThreshold || 0.5;

// style
mappedProps.style = style.list;
Expand Down
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.0.3",
"version": "4.0.4",
"description": "Styleable set of components for React Native applications",
"dependencies": {
"@shoutem/animation": "~0.12.4",
Expand Down

0 comments on commit 88120a6

Please sign in to comment.