2

Inside screen i managed to hide title by setting it to empty like below

static navigationOptions = {
  title: "" 
};

but for every screen i have to set title as empty i was wondering if there is any property to hide titles by default and only show icons ?

Xain Pro
  • 71
  • 1
  • 8

1 Answers1

4

Referring to react-navigations documentation, you can use showLabel in tabBarOptions to hide the label. Default is set to true.

TabNavigator(
        {
          MyScreen: { screen: MyScreen }
        },
        {
          tabBarOptions: {
            showLabel: false,
            showIcon: true
          }
        }
      )
wizloc
  • 2,202
  • 4
  • 28
  • 54
  • It works thanks i tries to find it in documentation before but the term title and label make confusion. – Xain Pro Oct 16 '17 at 15:56