-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
40 lines (37 loc) · 1.05 KB
/
App.tsx
File metadata and controls
40 lines (37 loc) · 1.05 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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { View, StyleSheet } from "react-native";
import Header from "./components/Header";
import Footer from "./components/Footer";
import Secretary from "./components/Secretary";
import Plan from "./components/Plan";
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<View style={styles.container}>
<Header />
<View style={styles.content}>
<Stack.Navigator
initialRouteName="Secretary"
screenOptions={{ headerShown: false }}
>
<Stack.Screen name="Secretary" component={Secretary} />
<Stack.Screen name="Plan" component={Plan} />
</Stack.Navigator>
</View>
<Footer />
</View>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: "column",
},
content: {
flex: 1,
},
});