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
3 changed files with 27 additions and 15 deletions
+1 -1
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}