isModal param for native custom header
Hamid
In react-navigation v6 you can specify a custom header for the native stack. I'm wondering if there is a way to understand whether the current screen is presented modally or not while rendering the header so we can customize the header for modals. I was checking the js stack navigation implementation and it seems
ModalPresentationContext
is being used for this purpose. Is there any plan to bring such a thing to the native stack as well?It would be nice if we could have something like
isModal
param along with other params (navigation, options, route...) in the custom header function.