-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
102 lines (97 loc) · 3.29 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
import { View } from "react-native"
import { StatusBar } from "expo-status-bar"
import { NavigationContainer } from "@react-navigation/native"
import { createNativeStackNavigator } from "@react-navigation/native-stack"
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"
import HomeScreen from "./screens/HomeScreen"
import TransferScreen from "./screens/TransferScreen"
import StatisticsScreen from "./screens/StatisticsScreen"
import UtilitiesScreen from "./screens/UtilitiesScreen"
import SettingsScreen from "./screens/SettingsScreen"
import { HomeIcon } from "react-native-heroicons/outline"
import { ArrowsRightLeftIcon } from "react-native-heroicons/outline"
import { ChartPieIcon } from "react-native-heroicons/outline"
import { RectangleStackIcon } from "react-native-heroicons/outline"
import { Cog8ToothIcon } from "react-native-heroicons/outline"
const Stack = createNativeStackNavigator()
const Tab = createBottomTabNavigator()
export default function App() {
return (
<NavigationContainer>
{/* <Stack.Navigator> */}
{/* Screens */}
{/* <Stack.Screen
name="Home"
component={HomeScreen}
options={{ headerShown: false }}
/>
</Stack.Navigator> */}
<Tab.Navigator
screenOptions={{
headerShown: false,
tabBarShowLabel: false,
tabBarBackground: () => (
<View className="bg-[#232323] flex-1"></View>
),
tabBarStyle: { borderTopWidth: 0 },
}}
>
<Tab.Screen
name="Home"
component={HomeScreen}
options={{
tabBarIcon: ({ focused, color, size }) => {
return <HomeIcon color={color} size={size} />
},
tabBarActiveTintColor: "#5565FF",
tabBarInactiveTintColor: "gray",
}}
/>
<Tab.Screen
name="Transfers"
component={TransferScreen}
options={{
tabBarIcon: ({ focused, color, size }) => {
return <ArrowsRightLeftIcon color={color} size={size} />
},
tabBarActiveTintColor: "#5565FF",
tabBarInactiveTintColor: "gray",
}}
/>
<Tab.Screen
name="Statistics"
component={StatisticsScreen}
options={{
tabBarIcon: ({ focused, color, size }) => {
return <ChartPieIcon color={color} size={size} />
},
tabBarActiveTintColor: "#5565FF",
tabBarInactiveTintColor: "gray",
}}
/>
<Tab.Screen
name="Utilities"
component={UtilitiesScreen}
options={{
tabBarIcon: ({ focused, color, size }) => {
return <RectangleStackIcon color={color} size={size} />
},
tabBarActiveTintColor: "#5565FF",
tabBarInactiveTintColor: "gray",
}}
/>
<Tab.Screen
name="Settings"
component={SettingsScreen}
options={{
tabBarIcon: ({ focused, color, size }) => {
return <Cog8ToothIcon color={color} size={size} />
},
tabBarActiveTintColor: "#5565FF",
tabBarInactiveTintColor: "gray",
}}
/>
</Tab.Navigator>
</NavigationContainer>
)
}