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

Drawer w/ Nested Nav and Header Issue #2103

Closed
chrissm79 opened this issue Jul 24, 2017 · 2 comments
Closed

Drawer w/ Nested Nav and Header Issue #2103

chrissm79 opened this issue Jul 24, 2017 · 2 comments

Comments

@chrissm79
Copy link

I'm having an issue when I'm inside a nested nav stack and pushing from a Drawer page. During the transition the Drawer header gets pushed underneath the next scene's header. Even if I put hideNavBar on the Drawer and the internal drawer scene, it pushes the content down during the transition to the next scene.

The drawer and external scenes are separated into different stacks because I need to avoid accidentally opening the drawer on the external scenes when trying to swipe to go back (something has has plagued me w/ react-navigation until this package came along).

Thanks for any help!!

export default App = () => (
  <Router createReducer={reducerCreate} getSceneStyle={getSceneStyle}>
    <Scene key="root" tabs hideTabBar hideNavBar>
      <Scene key="guest" modal initial hideNavBar>
        <Scene key="login" component={Login} initial />
        <Scene key="register" component={Register} />
      </Scene>
      <Scene key="authenticated">
        <Scene key="drawer" drawer hideNavBar contentComponent={Drawer} initial>
          <Scene key="dashboard" title="Dashboard" component={Dashboard} initial />
        </Scene>
        <Scene key="external" component={External} title="Some External Scene" />
        {/* Additional external scenes... */}
      </Scene>
    </Scene>
  </Router>
)

simulator screen shot jul 24 2017 2 08 47 pm
simulator screen shot jul 24 2017 2 27 48 pm

@aksonov
Copy link
Owner

aksonov commented Jul 25, 2017

It is how react-navigation works - you have to use Drawer on top level. Similar to react-navigation/react-navigation#374 ?

@aksonov aksonov closed this as completed Jul 25, 2017
@webdevsyd
Copy link

webdevsyd commented Jul 16, 2018

@aksonov Im currently encountering this. Any straight forward solution for this issue? When I click the message Icon as you can see below in the code, same thing happen to with my navigation
Here's what I have.

screen shot 2018-07-16 at 9 57 51 pm

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