-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
76 lines (70 loc) · 1.87 KB
/
App.js
File metadata and controls
76 lines (70 loc) · 1.87 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import "react-native-gesture-handler";
import React from "react";
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import Home_main from "./Components/Home_main";
import Journal_main from "./Components/Journal_main";
//import Feedback_main from "./Components/Feedback_main";
import Feedback_navigation from "./Components/Feedback_navigation";
import { FontAwesome } from "@expo/vector-icons";
const Tab = createBottomTabNavigator();
const Tabs = () => {
return (
<Tab.Navigator>
<Tab.Screen
name="Home"
component={Home_main}
options={{
tabBarIcon: ({ focused }) => (
<View>
<FontAwesome name="home" size={24} color="black" />
</View>
),
}}
/>
<Tab.Screen
name="Journal"
component={Journal_main}
options={{
tabBarIcon: ({ focused }) => (
<View>
<FontAwesome name="pencil-square" size={24} color="black" />
</View>
),
}}
/>
<Tab.Screen
name="Feedback"
component={Feedback_navigation}
options={{
tabBarIcon: ({ focused }) => (
<View>
<FontAwesome name="commenting" size={24} color="black" />
</View>
),
}}
/>
</Tab.Navigator>
);
};
export default function App() {
return (
<>
<View style={styles.container}>
<StatusBar style="auto" />
</View>
<NavigationContainer>
<Tabs />
</NavigationContainer>
</>
);
}
const styles = StyleSheet.create({
container: {
backgroundColor: "#D4FAA4",
alignItems: "center",
justifyContent: "center",
},
});