Reputation: 23
How can I cover the tab bar by pushing a new view in Wix/react-native-navigation for react native?
I can push new views with the API but I can't find any method that is able to push with covering the tab bar.
Upvotes: 1
Views: 815
Reputation: 3501
In the new screen you are pushing, add tabBarHidden: true
to the navigatorStyle
.
class NextScreen extends Component {
static navigatorStyle = {
tabBarHidden: true,
drawUnderTabBar: true // Since we want to render the screen instead of the tabBar
};
}
More styling options can be found in the docs
Upvotes: 2