-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
26 lines (23 loc) · 855 Bytes
/
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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { StyleSheet, Text, View } from "react-native";
import { createMaterialTopTabNavigator } from "@react-navigation/material-top-tabs";
import Header from "./components/header";
import DailyScreen from "./screens/daily";
import WeeklyScreen from "./screens/weekly";
import MonthlyScreen from "./screens/monthly";
const Tab = createMaterialTopTabNavigator();
export default function App() {
return (
<>
<Header title="TODOs List" />
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen name="Daily" component={DailyScreen} />
<Tab.Screen name="Weekly" component={WeeklyScreen} />
<Tab.Screen name="Monthly" component={MonthlyScreen} />
</Tab.Navigator>
</NavigationContainer>
</>
);
}