-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
47 lines (46 loc) · 1.33 KB
/
App.js
File metadata and controls
47 lines (46 loc) · 1.33 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
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import Home from "./src/pages/Home";
import NewTask from "./src/pages/NewTask";
import { Entypo, MaterialIcons } from "@expo/vector-icons";
export default function App() {
const Tab = createBottomTabNavigator();
return (
<NavigationContainer>
<Tab.Navigator
initialRouteName="Home"
screenOptions={{
tabBarStyle: {
backgroundColor: "#fff",
height: 50,
borderTopColor: "transparent",
paddingBottom: 5,
},
tabBarActiveTintColor: "#4335f4",
tabBarInactiveTintColor: "black",
}}
>
<Tab.Screen
name="Home"
component={Home}
options={{
headerShown: false,
tabBarIcon: ({ size, color }) => (
<Entypo name="home" size={size} color={color} />
),
}}
/>
<Tab.Screen
name="NewTask"
component={NewTask}
options={{
headerShown: false,
tabBarIcon: ({ size, color }) => (
<MaterialIcons name="add-task" size={size} color={color} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}