-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventStack.js
More file actions
26 lines (24 loc) · 804 Bytes
/
Copy pathEventStack.js
File metadata and controls
26 lines (24 loc) · 804 Bytes
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 { createStackNavigator } from "@react-navigation/stack";
import { useNavigation } from "@react-navigation/native";
import EventDetailScreen from "./EventDetailScreen";
import AddEventScreen from "./AddEventScreen";
import CalendarScreen from "./CalendarScreen";
const Stack = createStackNavigator();
export default function App() {
return (
<Stack.Navigator>
<Stack.Screen
name="Events"
component={CalendarScreen}
options={{ headerTitleAlign: "center" }}
/>
<Stack.Screen
name="New Event"
component={AddEventScreen}
options={{ headerTitleAlign: "center" }}
/>
<Stack.Screen name="Event Details" component={EventDetailScreen} />
</Stack.Navigator>
);
}