You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue with the ContextMenu component from the Zeego library on iOS. Despite setting the action prop to press, the context menu still triggers on a long press instead of a regular press.
Steps to Reproduce:
Use the ContextMenu component in a React Native project.
Set the action prop to press on the ContextMenu.Trigger component.
Run the app on an iOS device or simulator.
Observe that the context menu only appears on a long press, not on a regular press.
Expected Behavior:
The context menu should appear when the trigger is pressed, as specified by the action prop.
Actual Behavior:
The context menu only appears on a long press, ignoring the action prop setting.
Code Example:
jsx
Copy code
import * as ContextMenu from 'zeego/context-menu';
import { View, Alert } from 'react-native';
import React from 'react';
I have verified that the ContextMenu component behaves correctly on other platforms. This issue seems specific to iOS. Any guidance or a fix for this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
v2 is fixed now. However, I think the action not working is an issue with isMenuPrimaryAction not working on the upstream react-native-ios-context-menu
I am experiencing an issue with the ContextMenu component from the Zeego library on iOS. Despite setting the action prop to press, the context menu still triggers on a long press instead of a regular press.
Steps to Reproduce:
Use the ContextMenu component in a React Native project.
Set the action prop to press on the ContextMenu.Trigger component.
Run the app on an iOS device or simulator.
Observe that the context menu only appears on a long press, not on a regular press.
Expected Behavior:
The context menu should appear when the trigger is pressed, as specified by the action prop.
Actual Behavior:
The context menu only appears on a long press, ignoring the action prop setting.
Code Example:
jsx
Copy code
import * as ContextMenu from 'zeego/context-menu';
import { View, Alert } from 'react-native';
import React from 'react';
const Example = () => (
<ContextMenu.Root>
<ContextMenu.Trigger action="press">
<View style={{ width: 150, height: 150, backgroundColor: 'red' }} />
</ContextMenu.Trigger>
<ContextMenu.Content>
<ContextMenu.Item key="option1" onSelect={() => Alert.alert('Option 1')}>
<ContextMenu.ItemTitle>Option 1</ContextMenu.ItemTitle>
</ContextMenu.Item>
<ContextMenu.Item key="option2" onSelect={() => Alert.alert('Option 2')}>
<ContextMenu.ItemTitle>Option 2</ContextMenu.ItemTitle>
</ContextMenu.Item>
<ContextMenu.Item key="option3" onSelect={() => Alert.alert('Option 3')}>
<ContextMenu.ItemTitle>Option 3</ContextMenu.ItemTitle>
</ContextMenu.Item>
</ContextMenu.Content>
</ContextMenu.Root>
);
export default Example;
Environment:
Zeego Version: [e.g., 1.0.0]
React Native Version: [e.g., 0.64.2]
iOS Version: [e.g., 14.4]
Device: [e.g., iPhone 12]
Additional Context:
I have verified that the ContextMenu component behaves correctly on other platforms. This issue seems specific to iOS. Any guidance or a fix for this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered: