-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
93 lines (87 loc) · 3.15 KB
/
App.tsx
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
import { StyleSheet, Text, View } from "react-native";
import Navigation from "./navigation/Navigation";
import { useFonts } from "expo-font";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { NavigationContainer } from "@react-navigation/native";
import { Ionicons } from "@expo/vector-icons";
import RentOut from "./rentOut/RentOut";
import Setting from "./settings/Setting";
const Tab = createBottomTabNavigator();
export default function App() {
const [fontsLoaded] = useFonts({
"Poppin-Black": require("./assets/fonts/Poppins-Black.ttf"),
"Poppin-Bold": require("./assets/fonts/Poppins-Bold.ttf"),
"Poppin-Medium": require("./assets/fonts/Poppins-Medium.ttf"),
"Poppin-SemiBold": require("./assets/fonts/Poppins-SemiBold.ttf"),
"Poppin-Regular": require("./assets/fonts/Poppins-Regular.ttf"),
"Poppin-Light": require("./assets/fonts/Poppins-Light.ttf"),
"Poppin-Thin": require("./assets/fonts/Poppins-Thin.ttf"),
});
return <Navigation />;
// return (
// <NavigationContainer>
// <Tab.Navigator
// screenOptions={({ route }) => ({
// tabBarIcon: ({ focused, color, size }) => {
// let iconName;
// if (route.name === "Home") {
// iconName = focused
// ? "ios-information-circle"
// : "ios-information-circle-outline";
// } else if (route.name === "Settings") {
// iconName = focused ? "ios-list" : "ios-list-outline";
// }
// // You can return any component that you like here!
// return <Ionicons name={iconName} size={size} color={color} />;
// },
// tabBarActiveTintColor: "white",
// tabBarInactiveTintColor: "gray",
// tabBarShowLabel: false,
// headerShown: false,
// tabBarStyle: { backgroundColor: "#262626", borderColor: "#262626" },
// })}
// >
// <Tab.Screen
// name="Tab1"
// component={Navigation}
// options={{
// // tabBarBadge: 3,
// tabBarIcon: ({ color, size }) => (
// <Ionicons name="home" color={color} size={size} />
// ),
// }}
// />
// <Tab.Screen
// name="Tab2"
// component={RentOut}
// options={{
// tabBarBadge: 0,
// tabBarBadgeStyle: { backgroundColor: "#EEAA2C" },
// tabBarIcon: ({ color, size }) => (
// <Ionicons name="car" color={color} size={size} />
// ),
// // tabBarStyle: { display: "none" },
// }}
// />
// <Tab.Screen
// name="Tab3"
// component={Setting}
// options={{
// // tabBarBadge: 3,
// tabBarIcon: ({ color, size }) => (
// <Ionicons name="menu" color={color} size={size} />
// ),
// }}
// />
// </Tab.Navigator>
// </NavigationContainer>
// );
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});