If you try to have main bottom nav , following the rules of https://reactnavigation.org/docs/hiding-tabbar-in-screens/, then if you want to have visible header only on some main screens in the main bottom nav, it doesn't comply.
For example component Main Bottom nav can have Tab bar screens "Dashboard" and "Profile" . And if you want to show header only on Profile screen it doesn't work with react navigation v6. It works on default createBottomTabNavigator() from v6
If you try to have main bottom nav , following the rules of https://reactnavigation.org/docs/hiding-tabbar-in-screens/, then if you want to have visible header only on some main screens in the main bottom nav, it doesn't comply. For example component Main Bottom nav can have Tab bar screens "Dashboard" and "Profile" . And if you want to show header only on Profile screen it doesn't work with react navigation v6. It works on default createBottomTabNavigator() from v6![Screenshot 2022-04-21 at 15 32 39](https://user-images.githubusercontent.com/47041472/164469083-d5f1ba1a-cb44-488f-b01c-c9536a696f5a.png)