Skip to content

Commit b9e13ec

Browse files
author
Slavko
committed
Merge branch 'release/2.0.12'
2 parents c114df3 + 14c4758 commit b9e13ec

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

components/ListView.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class ListView extends Component {
131131
renderFeaturedItem,
132132
renderSectionHeader,
133133
onRefresh,
134+
keyExtractor,
134135
} = this.props;
135136
const { refreshing } = this.state;
136137
const mappedProps = {
@@ -144,9 +145,9 @@ class ListView extends Component {
144145
// style
145146
mappedProps.style = style.list;
146147
mappedProps.contentContainerStyle = style.listContent;
147-
148+
148149
if ((Platform.OS === 'ios') && (parseInt(Platform.Version, 10) === 13)) {
149-
mappedProps.scrollIndicatorInsets={ right: 1 };
150+
mappedProps.scrollIndicatorInsets = { right: 1 };
150151
}
151152

152153
// rendering
@@ -174,7 +175,9 @@ class ListView extends Component {
174175
mappedProps.data = data;
175176

176177
// key extractor
177-
mappedProps.keyExtractor = (item, index) => index.toString();
178+
if (!keyExtractor) {
179+
mappedProps.keyExtractor = (item, index) => index.toString();
180+
}
178181

179182
// sections for SectionList
180183
if (sections) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shoutem/ui",
3-
"version": "2.0.11",
3+
"version": "2.0.12",
44
"description": "Styleable set of components for React Native applications",
55
"dependencies": {
66
"@shoutem/animation": "~0.12.4",

0 commit comments

Comments
 (0)