dyno-bot/Dyno-mobile-dev/screens/Navbar.js
2020-09-12 19:08:48 +01:00

34 lines
856 B
JavaScript

import React, { Component } from 'react';
import styles from '../styles.js';
import { Container, Header, Left, Button, Icon } from 'native-base';
export class Navbar extends Component {
constructor() {
super();
}
render() {
return (
<Container style={styles.background}>
<Header>
<Left>
<Button
transparent
onPress={() => this.onPressButton()}>
<Icon name='menu' />
</Button>
</Left>
</Header>
</Container >
);
}
onPressButton = () => {
this.props.navigator.toggleDrawer({
side: 'left',
animated: true,
to: 'missing'
})
}
}