Add missing key to menu item

This commit is contained in:
Brandon Presley 2022-11-16 18:27:49 +13:00
parent e7e2f299da
commit e6488c38c5
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@ export default function Select({
onDismiss={() => setShow(false)} onDismiss={() => setShow(false)}
anchor={<Button style={{alignSelf: 'flex-start'}}>{value}</Button>}> anchor={<Button style={{alignSelf: 'flex-start'}}>{value}</Button>}>
{items.map(item => ( {items.map(item => (
<Menu.Item title={item.label} onPress={() => onChange(item.value)} /> <Menu.Item
key={item.value}
title={item.label}
onPress={() => onChange(item.value)}
/>
))} ))}
</Menu> </Menu>
) )