-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
47 lines (42 loc) · 1.38 KB
/
App.tsx
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 { SafeAreaView, StyleSheet } from "react-native";
import Chat from "./screens/Chat";
import Feedback from "./screens/Feedback";
import History from "./screens/History";
import Home from "./screens/Home";
import Matching from "./screens/Matching";
import { NavigationContainer } from "@react-navigation/native";
import React from "react";
import { StatusBar } from "expo-status-bar";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import styled from "styled-components/native";
export type RootStackParamList = {
Home: undefined;
Matching: undefined;
Chat: undefined;
Feedback: undefined;
History: undefined;
};
const SafeAreaViewContainer = styled(SafeAreaView)`
flex: 1;
`;
const Stack = createNativeStackNavigator();
export default function App() {
return (
<SafeAreaViewContainer>
<NavigationContainer>
<StatusBar style="dark" />
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Matching" component={Matching} />
<Stack.Screen name="Chat" component={Chat} />
<Stack.Screen name="Feedback" component={Feedback} />
<Stack.Screen name="History" component={History} />
</Stack.Navigator>
</NavigationContainer>
</SafeAreaViewContainer>
);
}