diff --git a/components/menu.js b/components/menu.js
index 9631c02..d7cb1d4 100644
--- a/components/menu.js
+++ b/components/menu.js
@@ -13,27 +13,28 @@ export default class Menu extends Component {
placeActionButtons()
:
- this.props.navigate('Home')}
- >
- {'Home'}
-
- this.props.navigate('Calendar')}
- >
- {'Calendar'}
-
- this.props.navigate('Settings')}
- >
- {'Settings'}
-
+ {[
+ {title: 'Home', icon: 'home', componentName: 'Home'},
+ {title: 'Calendar', icon: 'calendar-range', componentName: 'Calendar'},
+ {title: 'Chart', icon: 'chart-line', componentName: 'Chart'},
+ {title: 'Stats', icon: 'chart-pie', componentName: 'Stats'},
+ {title: 'Settings', icon: 'settings', componentName: 'Settings'},
+ ].map(makeMenuItem)}
)
}
}
-function placeActionButtons() {}
\ No newline at end of file
+function makeMenuItem({title, icon, componentName}) {
+ return (
+
+
+ this.props.navigate(componentName)}
+ >
+ {title}
+
+
+ )
+}
\ No newline at end of file
diff --git a/styles/index.js b/styles/index.js
index 8943efa..42784d9 100644
--- a/styles/index.js
+++ b/styles/index.js
@@ -104,11 +104,14 @@ export default StyleSheet.create({
menu: {
backgroundColor: primaryColor,
paddingVertical: 18,
- paddingHorizontal: 15,
+ paddingHorizontal: 10,
alignItems: 'center',
- justifyContent: 'space-evenly',
+ justifyContent: 'space-between',
flexDirection: 'row',
},
+ menuText: {
+ color: fontOnPrimaryColor
+ },
headerCycleDay: {
flexDirection: 'row',
justifyContent: 'space-between'
@@ -163,5 +166,9 @@ export const iconStyles = {
},
symptomBoxActive: {
color: fontOnPrimaryColor
+ },
+ menuIcon: {
+ size: 20,
+ color: fontOnPrimaryColor
}
}
\ No newline at end of file