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

Element with elevation doesn't get overlayed by the drawer #10

Closed
agharium opened this issue Jun 7, 2017 · 0 comments
Closed

Element with elevation doesn't get overlayed by the drawer #10

agharium opened this issue Jun 7, 2017 · 0 comments

Comments

@agharium
Copy link

agharium commented Jun 7, 2017

That tab has an elevation property of 3.

image

And this was happening:

image

I managed to solve that by applying elevation 3 to the upper part of the drawer:

image

But now there's still a part of the tab that doesn't get covered by the drawer mask.

Any ideas?

This is my render:

render () {
  return (
    <Drawer
      ref={(comp) => {this.drawer = comp;}}
      style={styles.container}
      drawerWidth={width*0.8}
      leftDrawerContent={<Menu/>}
      type={Drawer.types.Overlay}
      easingFunc={Easing.ease}
      onDrawerOpen={() => {this.setState({drawerIsOpen: true})}}
      onDrawerClose={() => {this.setState({drawerIsOpen: false})}}
    >
      <Tab 
        onPress={() => {this.drawer.openLeftDrawer()}} 
        title="Pró-Mamá"
      />
      <Main />
    </Drawer>
  )
}
@agharium agharium closed this as completed Mar 1, 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

1 participant