Custom renderer context
jacdx opened this issue · 0 comments
jacdx commented
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?