Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom renderer context #221

Open
jacdx opened this issue May 31, 2021 · 0 comments
Open

Custom renderer context #221

jacdx opened this issue May 31, 2021 · 0 comments

Comments

@jacdx
Copy link

jacdx commented May 31, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant