Fixed warning when 2 items have the same name

This commit is contained in:
keplyx 2019-11-01 06:57:42 +01:00
parent 980dfdbdf3
commit 23d9a614d2

View file

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