-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
82 lines (80 loc) · 2.44 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
import { StyleSheet } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { Ionicons } from "@expo/vector-icons";
import HomeScreen from "./screens/HomeScreen";
import ProductsScreen from "./screens/ProductsScreen";
import SearchScreen from "./screens/SearchScreen";
import CartScreen from "./screens/CartScreen";
import ProfileScreen from "./screens/ProfileScreen";
const BottmTab = createBottomTabNavigator();
export default function App() {
return (
<NavigationContainer>
<BottmTab.Navigator
initialRouteName="Home"
screenOptions={{
headerStyle: { backgroundColor: "#3c0a6b" },
headerTintColor: "white",
tabBarActiveTintColor: "#3c0a6b",
tabBarActiveBackgroundColor: "#d4cce6",
tabBarStyle: {
height: 58,
paddingHorizontal: 10,
},
tabBarItemStyle: {
marginBottom: 16,
},
}}
sceneContainerStyle={{ backgroundColor: "#e3dfed" }}
>
<BottmTab.Screen
name="HomeScreen"
component={HomeScreen}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="home" color={color} size={size} />
),
}}
/>
<BottmTab.Screen
name="Product"
component={ProductsScreen}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="cube" color={color} size={size} />
),
}}
/>
<BottmTab.Screen
name="Search"
component={SearchScreen}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="search" color={color} size={size} />
),
}}
/>
<BottmTab.Screen
name="Cart"
component={CartScreen}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="cart" color={color} size={size} />
),
}}
/>
<BottmTab.Screen
name="Profile"
component={ProfileScreen}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="person" color={color} size={size} />
),
}}
/>
</BottmTab.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({});