Skip to content

Title not being shown on Tab selection #287

@alduro

Description

@alduro

Title is not shown for either Chats or Contacts tabs for instance. But yes for a route outside tabbar. What am I doing wrong ?

<Router name="root" navigationBarStyle={styles.navBar} titleStyle={styles.navTitle}>
  <Schema name="default" sceneConfig={Navigator.SceneConfigs.FloatFromRight}/>
  <Schema name="withoutAnimation"/>
  <Schema name="tab" type="switch" icon={TabIcon} />
  <Route name="signIn"   header={Header} component={SignIn} initial={true}/>
  <Route name="messages" component={ChatMessagesContainer} title="Chat Messages"/>
  <Route name="contactShow" component={ContactShowContainer} hideNavBar={true}/>
  <Route name="newChat" component={NewChatContainer}/>
  <Route name="tabbar">
      <Router footer={TabBar} style={styles.tabBar}>
            <Route name="tab1" schema="tab" title="Chats" component={ChatContainer}/>
            <Route name="tab2" schema="tab" title="Projects"/>
            <Route name="tab3" schema="tab" title="Contacts" component={ContactsIndexContainer}/>
            <Route name="tab4" schema="tab" title='Me'/>
      </Router>
  </Route>
</Router>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions