The setScreensWithoutTabBar hook doesn't work with new StackNavigators inside of thesetFilterBottomTabsRoutes hook.
This issue is not really solvable given the nature of the custom StackNavigator. The only reason I wish to use my own StackNavigator is so that I can display my own MoreScreen so that I can adjust the header height of the MoreScreen. A better workaround would be to use a more specific hook that adjusts the MoreScreen Header.
Reproducing the issue
When replacing the MoreScreen by using the following hook:
The setScreensWithoutTabBar hook no longer works with screens inside the custom MoreScreen component. For example, if I put the Groups component as an item within the MoreScreen, these will not work:
If I remove the setFilterBottomTabsRoutes hook code above, the setScreensWithoutTabBar hook does work. It's only when I use the setFilterBottomTabsRoutes hook that the setScreensWithoutTabBar hook does not work.
The
setScreensWithoutTabBar
hook doesn't work with new StackNavigators inside of thesetFilterBottomTabsRoutes
hook.This issue is not really solvable given the nature of the custom StackNavigator. The only reason I wish to use my own StackNavigator is so that I can display my own MoreScreen so that I can adjust the header height of the MoreScreen. A better workaround would be to use a more specific hook that adjusts the MoreScreen Header.
Reproducing the issue
When replacing the MoreScreen by using the following hook:
The
setScreensWithoutTabBar
hook no longer works with screens inside the custom MoreScreen component. For example, if I put the Groups component as an item within the MoreScreen, these will not work:If I remove the
setFilterBottomTabsRoutes
hook code above, thesetScreensWithoutTabBar
hook does work. It's only when I use thesetFilterBottomTabsRoutes
hook that thesetScreensWithoutTabBar
hook does not work.