react-native-ios-context-menu icon indicating copy to clipboard operation
react-native-ios-context-menu copied to clipboard

Feature Request: implement `UIContextMenuConfiguration.ElementOrder.priority`

Open nandorojo opened this issue 6 months ago • 0 comments

Apple docs: https://developer.apple.com/documentation/uikit/uicontextmenuconfiguration/elementorder/priority

Image

We should add an elementOrderPriority: 'automatic' | 'fixed' to the menu. Currently, only automatic is supported.

As a result, the menu item order changes based on where the menu is opened from. If, instead, we supported fixed, then we would be able to control which menu items always show at the top of the menu.

@dominicstop let me know if there's anything I can do to help. I think this is the file: https://github.com/dominicstop/react-native-ios-context-menu/blob/ac8f878d90717d6d12e875edc7ea6e5e9a852fa3/ios/RNIContextMenuView/RNIContextMenuViewContent%2BUIContextMenuInteractionDelegate.swift#L19

nandorojo avatar Apr 29 '25 20:04 nandorojo