When I push a screen with bottomTabs: { visible: false }
, the tab bar IS correctly hidden, but the rest of my app does not draw behind it, meaning my app displays a blank space where the tab bar used to be. I can work around it by explicitly setting visible: false, drawBehind: true
. Is this an intentional change for v2?
With {visible: false}
With {visible: false, drawBehind: true }
Looking at the code, I feel like a solution might be to change this statement https://github.com/wix/react-native-navigation/blob/master/lib/android/app/src/main/java/com/reactnativenavigation/presentation/BottomTabsPresenter.java#L112 to if (options.drawBehind.isTrue() || options.visible.isFalse())
?
Thanks very much!
Can confirm. I'm having the same issue. Actually, I just came here to open it and saw this one... Let me know if you find a way to fix this and I'll do the same.
I was able to work around it by explicitly setting {drawBehind: true}
:+1:
Actually, it looks like this is expected behaviour https://wix.github.io/react-native-navigation/#/docs/layout-types?id=changing-bottomtabs-visibility
On Android, Visibility can be toggled dynamically using the mergeOptions command. When hiding BottomTabs, drawBehind: true should be specified in order for the screen to render behind the area which was previously allocated to the BottomTabs.
Most helpful comment
I was able to work around it by explicitly setting
{drawBehind: true}
:+1: