wai lok wang
wai lok wang

Reputation: 23

How can the pushing view cover the tabbar in wix/react-native-navigation for react native

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

Answers (1)

guy.gc
guy.gc

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

Related Questions