prevent duplicate keys in feed tab bar (#2666)

This commit is contained in:
Hailey 2024-01-30 17:54:29 -08:00 committed by GitHub
parent faf48db679
commit 28455f49dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 27 additions and 15 deletions

View file

@ -78,7 +78,7 @@ export function TabBar({
return (
<PressableWithHover
testID={`${testID}-selector-${i}`}
key={item}
key={`${item}-${i}`}
onLayout={e => onItemLayout(e, i)}
style={[styles.item, selected && indicatorStyle]}
hoverStyle={pal.viewLight}