Closed moxiaobei2 closed 6 years ago
+1
Android doesn't support the style overflow: hidden. You could just move the tab bar off the screen.
var Dimensions = require('Dimensions');
if (hidden) {
var tabBarStyle = {position: 'absolute', top: Dimensions.get('window').height};
var sceneStyle = {paddingBottom: 0};
} else {
let tabBarHeight = 50;
var tabBarStyle = {height: tabBarHeight};
var sceneStyle = {paddingBottom: tabBarHeight};
}
<TabNavigator
tabBarStyle={tabBarStyle}
sceneStyle={sceneStyle}
/>
@zubricky thank you.
@zubricky Thanks +1
Will close since this issue is more than a year, feel free to a open a new if this is still a issue.
when i used route for change activity,I can go to another activity,but tabbar is still showed.How I can hide the bar,how Can I do in the child activity?