mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 09:44:55 -06:00
39 lines
931 B
JavaScript
39 lines
931 B
JavaScript
// @flow
|
|
import React, { Component } from "react";
|
|
import { Drawer, Avatar } from "react-native-material-ui";
|
|
|
|
type Props = {
|
|
navigator: Object,
|
|
route: { index: number, title: string, page: string }
|
|
};
|
|
|
|
export default class DrawerMenu extends Component {
|
|
static displayName = "DrawerMenu";
|
|
|
|
props: Props;
|
|
|
|
render() {
|
|
return (
|
|
<Drawer>
|
|
<Drawer.Header>
|
|
<Drawer.Header.Account
|
|
avatar={<Avatar icon="person" />}
|
|
footer={{
|
|
dense: true,
|
|
centerElement: { primaryText: "User Name" }
|
|
}}
|
|
/>
|
|
</Drawer.Header>
|
|
<Drawer.Section
|
|
divider
|
|
items={[
|
|
{ icon: "today", value: "Products" },
|
|
{ icon: "domain", value: "Places" },
|
|
{ icon: "stars", value: "Faves" },
|
|
{ icon: "exit-to-app", value: "Logout" }
|
|
]}
|
|
/>
|
|
</Drawer>
|
|
);
|
|
}
|
|
}
|