Fixed missing key warning

This commit is contained in:
Arnaud Vergnet 2020-04-17 21:16:02 +02:00
parent 8b4348a6a2
commit d0ced5d1e6

View file

@ -77,12 +77,15 @@ class CustomTabBar extends React.Component<Props> {
label={label}
focused={isFocused}
extraData={state.index > index}
key={route.key}
/>
} else
return <TabHomeIcon
onPress={onPress}
onLongPress={onLongPress}
focused={isFocused}/>
focused={isFocused}
key={route.key}
/>
})}
</View>
);