[V3] Android hide bottom tabs
Blank space at bottom when hide bottom tabs use with options: bottomTabs: { visible: false, animate: false, translucent: true, drawBehind: true } The bottom tab is hidden but there's a blank space (equal to tab bar height) at the bottom
Environment
- React Native Navigation version: 3.2.0-snapshot.512
- React Native version: 0.61.1
- Platform(s) (iOS, Android, or both?): Android
- Device info (Simulator/Device? OS version? Debug/Release?): Android Devices
Same here can anyone find any solution Please let me know
Working perfectly by using the below code options: { bottomTabs: { animate: false, elevation: 8, currentTabIndex: 2, titleDisplayMode: "alwaysShow", backgroundColor: "#537591", visible: false, animate: false, drawBehind: true }, topBar: { visible: false } }
in "react-native-navigation": "3.2.0",
@ParshantArora this solution not working with me Environment React Native Navigation version:( 3.2.0 , 3.2.0-snapshot.512 , 3.2.0-snapshot.524 ) React Native version: 0.61.1
@AhmedRedaDev
You can use setDefaultOptoin to not show the tab initially
Navigation.setDefaultOptions({
topBar: {
drawBehind: true,
},
bottomTabs: {
visible: false,
drawBehind: true,
},
});
Yes use the above code and create your own custom tabs
I'm having the same issue.
I temporarily solved it by setting the default option of BottomTabs to visible: false, and then setting the drawBehind and visible property to true on the screens where I actually need the tabs to be displayed.
Note, apparently components where you don't want the bottomTabs should have drawBehind: true to acknowledge it, as well.
Working example:
Navigation.setDefaultOptions({
bottomTabs: {
visible: false,
},
And on each Screen where I DONT want the whitespace:
MyScreen.options = {
bottomTabs: {
drawBehind: true,
},
}
note: function component
And where I DO want it:
MyOtherScreen.options = {
bottomTabs: {
visible: true,
drawBehind: true,
},
}
This seems rather hacky though...I'd expect that individual screen settings would override default options, and that drawBehind shouldn't be necessary to avoid the white space.
Same here. Setting visible to false and playing with other options for bottom tabs didn't help and still blank space
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
The issue has been closed for inactivity.
Anyone have a solution for this, I want to create my own custom tabs by display it absolute in every screen, but the bottom: 0 not make it at the bottom of the screen because of the Wix bottom tabs is still there.