Updated drawer styles

This commit is contained in:
Erick Clark 2018-06-03 12:12:45 -05:00
parent 868e61dfa4
commit 8df0c6569c
2 changed files with 27 additions and 1 deletions

View file

@ -46,9 +46,18 @@ export default class App extends Component {
<Drawer
ref={ref => (this._drawer = ref)}
type="overlay"
tapToClose={true}
acceptPan={true}
panCloseMask={.5}
openDrawerOffset={100}
content={<DrawerMenu onCloseDrawer={this.closeDrawer} />}
tweenDuration={150}>
tweenDuration={250}
tweenHandler={(ratio) => {
return {
mainOverlay: { opacity: ratio/1.5, backgroundColor: 'black' }
}
}}>
<StatusBar backgroundColor={theme.statusBarColor} />
<Redirect from="/" to="/landing" />
<Switch>

View file

@ -114,4 +114,21 @@ export default {
margin: 10,
},
},
drawer: {
container: {
flex: 1,
backgroundColor: '#FFF',
elevation: 6,
},
},
drawerHeader: {
container: {
elevation: 6,
},
contentContainer: {
backgroundColor: '#6D5354',
height: 150,
},
},
};