Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set NavBar above Tabs? #2181

Closed
shukerullah opened this issue Aug 3, 2017 · 5 comments
Closed

How to set NavBar above Tabs? #2181

shukerullah opened this issue Aug 3, 2017 · 5 comments

Comments

@shukerullah
Copy link

Version

  • react-native-router-flux v4.0.0-beta.15
  • react-navigation: ^1.0.0-beta.11
  • react-native: 0.47.0

I want to have only one NavBar above Tabs, how can I achieve this?

Here is my code

<Scene
  tabs
  key="home"
  title="Home"
  tabBarPosition={"bottom"}
  type={ActionConst.REPLACE}
  tabBarStyle={styles.tabBarStyle}
  activeBackgroundColor="#ddd"
>
  <Scene
    key="Title1"
    title="Title1"
    tabBarLabel="Title1"
    component={Profile}
    icon={TabIcon}
  />
  <Scene
    title="Title2"
    tabBarLabel="Title2"
    key="Title2"
    component={Profile}
    icon={TabIcon}
  />
  <Scene
    key="Title3"
    title="Title3"
    tabBarLabel="Title3"
    component={Profile}
    icon={TabIcon}
    hideNavBar
  />
</Scene>

Screenshot

screenshot

@mybolide
Copy link

mybolide commented Aug 4, 2017

The new version does not seem to support the icon property

@shukerullah
Copy link
Author

working in my case, just add showIcon in the parent scene, Home in my case.

@aksonov
Copy link
Owner

aksonov commented Aug 7, 2017

@shukerullah Could you clarify? Could you check Example project, its tab bar has only one nav bar.

@shukerullah
Copy link
Author

I want to have only one nav bar for all tab, is that possible?

@aksonov
Copy link
Owner

aksonov commented Aug 7, 2017

Yes, check Example project

@aksonov aksonov closed this as completed Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants