|
@@ -3,6 +3,7 @@ import {StyleSheet, View, Text , Button } from 'react-native';
|
|
import { Icon } from 'react-native-elements'
|
|
import { Icon } from 'react-native-elements'
|
|
import { TextInput } from 'react-native';
|
|
import { TextInput } from 'react-native';
|
|
import BaseSystem from './System'
|
|
import BaseSystem from './System'
|
|
|
|
+import { Ionicons } from '@expo/vector-icons';
|
|
|
|
|
|
class Menu extends BaseSystem {
|
|
class Menu extends BaseSystem {
|
|
constructor() {
|
|
constructor() {
|
|
@@ -92,36 +93,38 @@ export default class MainBar extends BaseSystem {
|
|
render(){
|
|
render(){
|
|
return (
|
|
return (
|
|
<View style={styles.container}>
|
|
<View style={styles.container}>
|
|
- <View style={ {flexDirection: 'row'} }>
|
|
|
|
- <Button
|
|
|
|
- color="#f1f1f1"
|
|
|
|
- title={<Icon name='menu'
|
|
|
|
|
|
+ <View style={ styles.innerContainer }>
|
|
|
|
+ <Text style={styles.item}>
|
|
|
|
+ <Icon
|
|
|
|
+ name='menu'
|
|
color="#606060"
|
|
color="#606060"
|
|
- />}
|
|
|
|
- onPress={(e) => this.toggleMenu()}
|
|
|
|
- />
|
|
|
|
- <Button
|
|
|
|
- color="#f1f1f1"
|
|
|
|
- title={<Icon name='home'
|
|
|
|
- color="#606060"
|
|
|
|
- />}
|
|
|
|
- />
|
|
|
|
|
|
+ onPress={(e) => this.toggleMenu()}
|
|
|
|
+ />
|
|
|
|
+ </Text>
|
|
|
|
+ <Text style={styles.item}>
|
|
|
|
+ <Icon
|
|
|
|
+ name='home'
|
|
|
|
+ color="#606060"
|
|
|
|
+ />
|
|
|
|
+ </Text>
|
|
</View>
|
|
</View>
|
|
- <View style={ {flexDirection: 'row'} }>
|
|
|
|
- <Button
|
|
|
|
|
|
+ <View style={ styles.innerContainer }>
|
|
|
|
+ <Text style={[styles.item, {fontSize: 18, lineHeight: 24}]}
|
|
onPress={(e) => this.triggerSave()}
|
|
onPress={(e) => this.triggerSave()}
|
|
title="Save"
|
|
title="Save"
|
|
color="#606060"
|
|
color="#606060"
|
|
- />
|
|
|
|
- <Button
|
|
|
|
|
|
+ >Save</Text>
|
|
|
|
+ <Text style={[styles.item, {fontSize: 18, lineHeight: 24}]}
|
|
onPress={(e) => this.export()}
|
|
onPress={(e) => this.export()}
|
|
title="Export"
|
|
title="Export"
|
|
color="#606060"
|
|
color="#606060"
|
|
- />
|
|
|
|
- <Text>
|
|
|
|
|
|
+ >Export</Text>
|
|
|
|
+ <Text style={[styles.item, {fontSize: 18, lineHeight: 24}]}>
|
|
Giorgos Markou
|
|
Giorgos Markou
|
|
</Text>
|
|
</Text>
|
|
- <Icon name="account_circle" type="material" color="#606060"/>
|
|
|
|
|
|
+ <Text style={styles.item}>
|
|
|
|
+ <Icon name="account-circle" color="#606060"/>
|
|
|
|
+ </Text>
|
|
</View>
|
|
</View>
|
|
{this.Menu.render()}
|
|
{this.Menu.render()}
|
|
</View>)
|
|
</View>)
|
|
@@ -134,12 +137,22 @@ const styles = StyleSheet.create({
|
|
flex:1,
|
|
flex:1,
|
|
paddingRight:8,
|
|
paddingRight:8,
|
|
paddingLeft:8,
|
|
paddingLeft:8,
|
|
- paddingTop: 16,
|
|
|
|
- paddingBottom: 16,
|
|
|
|
- height: 64,
|
|
|
|
|
|
+ paddingTop: 8,
|
|
|
|
+ paddingBottom: 8,
|
|
flexDirection:'row',
|
|
flexDirection:'row',
|
|
justifyContent: 'space-between'
|
|
justifyContent: 'space-between'
|
|
},
|
|
},
|
|
|
|
+ innerContainer: {
|
|
|
|
+ flexDirection: 'row',
|
|
|
|
+ paddingTop: 4,
|
|
|
|
+ paddingLeft: 0,
|
|
|
|
+ paddingRight: 0,
|
|
|
|
+ paddingBottom: 4
|
|
|
|
+ },
|
|
|
|
+ item: {
|
|
|
|
+ paddingLeft: 8,
|
|
|
|
+ paddingRight: 8
|
|
|
|
+ },
|
|
menu: {
|
|
menu: {
|
|
height:100,
|
|
height:100,
|
|
width: 200,
|
|
width: 200,
|