MenuItems uses an numeric index for reactive keys, so react has no idea that the item needs to be recomputed when the arrow function differs between two items but all other properties are the same. This should be exposed to the developers and required to prevent the side effect of the first onPress arrow function persisting for all items that only differ by their onPress property.
Summary
This addresses
MenuItems
uses an numericindex
for reactive keys, so react has no idea that the item needs to be recomputed when the arrow function differs between two items but all other properties are the same. This should be exposed to the developers and required to prevent the side effect of the firstonPress
arrow function persisting for all items that only differ by theironPress
property.