-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
103 lines (95 loc) · 2.63 KB
/
App.js
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { LogBox } from "react-native"
LogBox.ignoreAllLogs(true)
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import LoginScreen from "./screens/LoginScreen";
import HomeScreen from "./screens/HomeScreen";
import Demographic from "./screens/Demographic";
import SavedScreen from "./screens/SavedScreen";
import SettingsScreen from "./screens/SettingsScreen";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { Ionicons, FontAwesome } from "@expo/vector-icons";
import SpecificResidence from "./screens/SpecificResidence";
import Listings from "./screens/Listings"
import { TouchableOpacity } from "react-native";
const Tab = createBottomTabNavigator();
const Stack = createNativeStackNavigator();
function HomeTabs() {
return (
<Tab.Navigator>
<Tab.Screen
name="Home"
component={HomeScreen}
options={{
tabBarLabel: "Home",
tabBarIcon: ({ color, size }) => (
<Ionicons name="home" color={color} size={size} />
),
}}
/>
<Tab.Screen
name="Profile"
component={Demographic}
options={{
tabBarLabel: "Profile",
tabBarIcon: ({ color, size }) => (
<Ionicons name="person-circle-sharp" size={size} color={color} />
),
}}
/>
{/* <Tab.Screen
name="Saved"
component={SavedScreen}
options={{
tabBarLabel: "Saved",
tabBarIcon: ({ color, size }) => (
<FontAwesome name="bookmark" size={size} color={color} />
),
}}
/> */}
<Tab.Screen
name="Setting"
component={SettingsScreen}
options={{
headerShown: false,
tabBarLabel: "Settings",
tabBarIcon: ({ color, size }) => (
<Ionicons name="settings" size={size} color={color} />
),
}}
/>
</Tab.Navigator>
);
}
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false
}}
>
<Stack.Screen
options={{ headerShown: false }}
name="Login"
component={LoginScreen}
/>
<Stack.Screen name="Home" component={HomeTabs} />
<Stack.Screen name="Demographic" component={Demographic} />
<Stack.Screen name="SpecificResidence" component={SpecificResidence}/>
<Stack.Screen name="Listings" component={Listings}/>
</Stack.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});