Add missing key to menu item
This commit is contained in:
parent
e7e2f299da
commit
e6488c38c5
|
@ -22,7 +22,11 @@ export default function Select({
|
|||
onDismiss={() => setShow(false)}
|
||||
anchor={<Button style={{alignSelf: 'flex-start'}}>{value}</Button>}>
|
||||
{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>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user