Browse Source

Fixed warning when 2 items have the same name

keplyx 2 years ago
parent
commit
23d9a614d2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      screens/Proximo/ProximoListScreen.js

+ 1
- 1
screens/Proximo/ProximoListScreen.js View File

@@ -275,7 +275,7 @@ export default class ProximoListScreen extends React.Component<Props, State> {
275 275
                     <FlatList
276 276
                         data={this.state.navData}
277 277
                         extraData={this.state.navData}
278
-                        keyExtractor={(item) => item.name}
278
+                        keyExtractor={(item) => item.name + item.code}
279 279
                         style={{minHeight: 300, width: '100%'}}
280 280
                         renderItem={({item}) =>
281 281
                             <ListItem

Loading…
Cancel
Save