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

Tabs can't hide navbar #2964

Closed
blackinitial opened this issue Mar 26, 2018 · 3 comments
Closed

Tabs can't hide navbar #2964

blackinitial opened this issue Mar 26, 2018 · 3 comments

Comments

@blackinitial
Copy link

How to make tabs pretty and hide nav under tabs, i use tabs but like this

gambar

this my code:

<Tabs 
    key="tab_report" title="History" hideNavBar={false} back
    navigationBarStyle={{ backgroundColor: '#344147' }} navBarButtonColor="#fff"
    renderRightButton={more} onRight={() => console.log('more')}
 >
  <Stack key="report_booking_airline_tab" tabBarLabel="Booking">
    <Scene
       key="report_booking_airline" component={ReportBookingAirline}
     />
  </Stack>
  <Stack key="report_issued_airline_tab" tabBarLabel="Issued">
     <Scene
        key="report_issued_airline" component={ReportBookingAirline}
      />
  </Stack>
</Tabs>
@aaron25mt
Copy link

Try changing <Tabs hideNavBar={false}> to <Tabs hideNavBar={true}> and then add hideNavBar={false} to each scene. I think that'll work.. a little repetitive but it's what I'm doing for now.

@blackinitial
Copy link
Author

@aaron25mt Thanks for your reply, i was do it but the top nav goes missing.

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists

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

No branches or pull requests

3 participants