Customize menu action item
See original GitHub issueThank you for creating this amazing package 🚀
I’m currently trying to add custom buttons to the context-menu, because not every emoji reaction should be a separate action menu item. That’s why I’ve made a custom preview render, which renders a small bar with pressables.
However when I try to click it the onPress handles don’t get called.
I’ve tried to use onPressMenuPreview instead, however the page x & y position of the pressed item don’t get passed to the event handler, only the generic RNIContextMenuView
tag is passed.
Is there any way to either customize an action menu item or make the buttons in the preview pressable?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Custom Action Menu Items - SG Developer
API developers can customize context menu items on a per-entity basis, through Action Menu Items (AMIs). For example, from a Versions page, you...
Read more >Menus - Android Developers
The options menu is the primary collection of menu items for an activity. It's where you should place actions that have a global...
Read more >Defining Action Menu Items - Oracle Help Center
From the Home page, click Navigator Navigator icon , and then under Create and Manage, click Action Menus. · Select a menu and...
Read more >Set up a custom action menu for list and list records
Open the [ Freedom UI page ] schema that contains the list. · Go to the viewConfigDiff schema section and find the configuration...
Read more >Menus and actions - Components - Human Interface Guidelines
A single menu item that displays a label that can change depending on the current state, such as Show Ruler and Hide Ruler....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nandorojo @Flam3rboy hey sorry for the late response haha here are results of my testing ✨
Debug Layout:
UITransitionView
is internal, not published in the SDKUIViewController
(Preview Content) ->UITransitionView
(Internal) ->UIWindow
(Main Window)userInteractionEnabled
is disabled, enabling it does nothing…_UIContextMenuContainerView
is the view that’s holding our preview content (along with the context menu buttons)_UIContextMenuContainerView
is internal, so we can’t cast to it… so we search for the view that has a bunch of gesture recoginizerNSStringFromClass
), but referencing internal classes will get out app flag by app review hahaSummary: interactive context menu’s are still not possible in iOS 15 😔 (if you have any more ideas I can try, please let me know haha, but for now, I’ll be closing the issue — if i find another way, I’ll update this)
Note: I could not find any resources on the internet for making context menu previews interactive, so the following are just based on my tinkering haha
Yeah, see
renderAuxiliaryPreview