react-native-hold-menu
react-native-hold-menu copied to clipboard
fix: fix for unreactive react keys
Summary
This addresses
- https://github.com/enesozturk/react-native-hold-menu/issues/86
- https://github.com/enesozturk/react-native-hold-menu/issues/105
- https://github.com/enesozturk/react-native-hold-menu/issues/106
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.
This should be merged ASAP. @enesozturk
Need this also 🙏🙏🙏 @enesozturk