instea/react-native-popup-menu

withMenuContext is not declared in index.d.ts

nitzanbueno opened this issue · 5 comments

I'm on version 0.15.7 and the function withMenuContext works fine, but is not declared in index.d.ts, and thus causes a compilation error when imported.

hi there, are you willing to contribute the fix?

I'll try my best.

I wasn't sure if I should add types for the MenuRegistry object, so I did.
If you need me to, I can remove them

Could you merge the PR?

thanks for your help, merged