diff --git a/src/components/ExpoContextMenu.tsx b/src/components/ExpoContextMenu.tsx index b70d18c..15a978c 100644 --- a/src/components/ExpoContextMenu.tsx +++ b/src/components/ExpoContextMenu.tsx @@ -430,9 +430,16 @@ export const ExpoContextMenu: React.FC = ({ {typeof renderMenu === 'function' ? renderMenu() : menuItems?.map((item, index) => { + const { onPress: _onPress, ...rest } = item; return ( - + { + _onPress?.(); + hideMenu(); + }} + /> {index !== menuItems.length - 1 && (