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 need to access the menu context from within my custom renderer. Due to layering, I need part of it to be able to trigger menuActions.closeMenu onPress.
If I wrap the export of my renderer with withMenuContext (similar to other parts of this library), I get the ctx prop which gives me access to MenuActions. However, doing that breaks something, as the renderer's close method no longer gets called during the close process. If I remove withMenuContext, close works again.
Is there a better way to be accessing the menu context from within a renderer?
The text was updated successfully, but these errors were encountered:
Hi,
I need to access the menu context from within my custom renderer. Due to layering, I need part of it to be able to trigger menuActions.closeMenu onPress.
If I wrap the export of my renderer with withMenuContext (similar to other parts of this library), I get the ctx prop which gives me access to MenuActions. However, doing that breaks something, as the renderer's close method no longer gets called during the close process. If I remove withMenuContext, close works again.
Is there a better way to be accessing the menu context from within a renderer?
The text was updated successfully, but these errors were encountered: