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 navbar duplicating when transition takes place #2963

Closed
nica0012 opened this issue Mar 24, 2018 · 0 comments
Closed

Drawer navbar duplicating when transition takes place #2963

nica0012 opened this issue Mar 24, 2018 · 0 comments

Comments

@nica0012
Copy link

Version:
4.0.0-beta.28

Expected behaviour:
Drawer only available to access on one scene (initial page after login)

Actual behaviour:
I have the drawer wrapped around my initial scene, and it correctly shows only on that scene, but when I navigate there is a weird glitch in the navbar. The drawer navbar duplicates only when the transition is happening.

Code:

    <Scene key="auth">
      <Scene
        key="login"
        component={LoginForm}
        initial
        hideNavBar
      />
    </Scene>

  <Scene key="main">

      <Drawer
        hideNavBar
        key="drawer"
        contentComponent={DrawerContent}
        drawerImage={MenuIcon}
        drawerWidth={300}
      >
        <Scene
          key="StringListList"
          component={StringList}
          renderTitle={() => { return <AppLogo />; }}
          panHandlers={null}
          navigationBarStyle={styles.stringListNav}
        />
      </Drawer>

        <Scene
            key="StringDetails"
            component={StringDetail}
            title="Specs"
            navigationBarStyle={styles.stringListNav}
        />
        <Scene
            key="adjustScale"
            component={AdjustScale}
            title="String Adjustment"
        />
        <Scene
            key="themes"
            component={Themes}
            title="Themes"
            backTitle=' '
        />
      </Scene>

  </Scene>
</Router>

);
}

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

1 participant