Skip to content

Commit

Permalink
Merge branch 'release/2.0.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
Slavko committed Jun 25, 2020
2 parents c114df3 + 14c4758 commit b9e13ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions components/ListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class ListView extends Component {
renderFeaturedItem,
renderSectionHeader,
onRefresh,
keyExtractor,
} = this.props;
const { refreshing } = this.state;
const mappedProps = {
Expand All @@ -144,9 +145,9 @@ class ListView extends Component {
// style
mappedProps.style = style.list;
mappedProps.contentContainerStyle = style.listContent;

if ((Platform.OS === 'ios') && (parseInt(Platform.Version, 10) === 13)) {
mappedProps.scrollIndicatorInsets={ right: 1 };
mappedProps.scrollIndicatorInsets = { right: 1 };
}

// rendering
Expand Down Expand Up @@ -174,7 +175,9 @@ class ListView extends Component {
mappedProps.data = data;

// key extractor
mappedProps.keyExtractor = (item, index) => index.toString();
if (!keyExtractor) {
mappedProps.keyExtractor = (item, index) => index.toString();
}

// sections for SectionList
if (sections) {
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": "2.0.11",
"version": "2.0.12",
"description": "Styleable set of components for React Native applications",
"dependencies": {
"@shoutem/animation": "~0.12.4",
Expand Down

0 comments on commit b9e13ec

Please sign in to comment.