-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathApp.js
More file actions
52 lines (48 loc) · 1.56 KB
/
App.js
File metadata and controls
52 lines (48 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import React from "react";
import { View } from "react-native";
import { createAppContainer } from "react-navigation";
import { createBottomTabNavigator } from "react-navigation-tabs";
import { FontAwesome5 } from "@expo/vector-icons";
import { JournalScreen, MeasuresScreen, TreatmentScreen, ProfileScreen } from "./screens";
import AddButton from "./components/AddButton";
// https://dribbble.com/shots/7046707-Nav-Bar-Animation
const TabNavigator = createBottomTabNavigator(
{
Journal: {
screen: JournalScreen,
navigationOptions: {
tabBarIcon: () => <FontAwesome5 name="book-medical" size={24} color="#CDCCCE" />
}
},
Measures: {
screen: MeasuresScreen,
navigationOptions: {
tabBarIcon: () => <FontAwesome5 name="heartbeat" size={24} color="#CDCCCE" />
}
},
Add: {
screen: () => null,
navigationOptions: {
tabBarIcon: <AddButton />
}
},
Treatment: {
screen: TreatmentScreen,
navigationOptions: {
tabBarIcon: () => <FontAwesome5 name="band-aid" size={24} color="#CDCCCE" />
}
},
Profile: {
screen: ProfileScreen,
navigationOptions: {
tabBarIcon: () => <FontAwesome5 name="user" size={24} color="#CDCCCE" />
}
}
},
{
tabBarOptions: {
showLabel: false
}
}
);
export default createAppContainer(TabNavigator);