Update TooltipMenu.ios.tsx

This commit is contained in:
Marcos Rodriguez Velez 2024-05-18 21:25:31 -04:00
parent d79e74d96c
commit 5b1122ea68
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7

View file

@ -96,9 +96,13 @@ const BaseToolTipMenu = (props: ToolTipMenuProps, ref: Ref<any>) => {
}
: {})}
>
<TouchableOpacity accessibilityRole="button" onPress={onPress}>
{props.children}
</TouchableOpacity>
{onPress ? (
<TouchableOpacity accessibilityRole="button" onPress={onPress}>
{props.children}
</TouchableOpacity>
) : (
props.children
)}
</ContextMenuView>
);
@ -109,7 +113,7 @@ const BaseToolTipMenu = (props: ToolTipMenuProps, ref: Ref<any>) => {
) : props.onPress ? (
renderContextMenuView()
) : (
renderContextMenuButton()
renderContextMenuView()
);
};