File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ class ListView extends Component {
131
131
renderFeaturedItem,
132
132
renderSectionHeader,
133
133
onRefresh,
134
+ keyExtractor,
134
135
} = this . props ;
135
136
const { refreshing } = this . state ;
136
137
const mappedProps = {
@@ -144,9 +145,9 @@ class ListView extends Component {
144
145
// style
145
146
mappedProps . style = style . list ;
146
147
mappedProps . contentContainerStyle = style . listContent ;
147
-
148
+
148
149
if ( ( Platform . OS === 'ios' ) && ( parseInt ( Platform . Version , 10 ) === 13 ) ) {
149
- mappedProps . scrollIndicatorInsets = { right : 1 } ;
150
+ mappedProps . scrollIndicatorInsets = { right : 1 } ;
150
151
}
151
152
152
153
// rendering
@@ -174,7 +175,9 @@ class ListView extends Component {
174
175
mappedProps . data = data ;
175
176
176
177
// key extractor
177
- mappedProps . keyExtractor = ( item , index ) => index . toString ( ) ;
178
+ if ( ! keyExtractor ) {
179
+ mappedProps . keyExtractor = ( item , index ) => index . toString ( ) ;
180
+ }
178
181
179
182
// sections for SectionList
180
183
if ( sections ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @shoutem/ui" ,
3
- "version" : " 2.0.11 " ,
3
+ "version" : " 2.0.12 " ,
4
4
"description" : " Styleable set of components for React Native applications" ,
5
5
"dependencies" : {
6
6
"@shoutem/animation" : " ~0.12.4" ,
You can’t perform that action at this time.
0 commit comments