Skip to content

Commit 63ceb91

Browse files
committed
[#13] chore: App 에 마이페이지 추가
1 parent f0fc39d commit 63ceb91

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/App.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1+
import { StatusBar } from "expo-status-bar";
2+
import React from "react";
13
import { SafeAreaView, StyleSheet } from "react-native";
4+
import styled from "styled-components/native";
5+
6+
import { NavigationContainer } from "@react-navigation/native";
7+
import { createNativeStackNavigator } from "@react-navigation/native-stack";
28

39
import Chat from "./screens/Chat";
410
import Feedback from "./screens/Feedback";
511
import History from "./screens/History";
612
import Home from "./screens/Home";
713
import Matching from "./screens/Matching";
8-
import { NavigationContainer } from "@react-navigation/native";
9-
import React from "react";
10-
import { StatusBar } from "expo-status-bar";
11-
import { createNativeStackNavigator } from "@react-navigation/native-stack";
12-
import styled from "styled-components/native";
14+
import MyPage from "./screens/MyPage";
1315

1416
export type RootStackParamList = {
1517
Home: undefined;
1618
Matching: undefined;
1719
Chat: undefined;
1820
Feedback: undefined;
1921
History: undefined;
22+
MyPage: undefined;
2023
};
2124

2225
const SafeAreaViewContainer = styled(SafeAreaView)`
@@ -40,6 +43,7 @@ export default function App() {
4043
<Stack.Screen name="Chat" component={Chat} />
4144
<Stack.Screen name="Feedback" component={Feedback} />
4245
<Stack.Screen name="History" component={History} />
46+
<Stack.Screen name="MyPage" component={MyPage} />
4347
</Stack.Navigator>
4448
</NavigationContainer>
4549
</SafeAreaViewContainer>

src/screens/Home/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const Home = ({ navigation }: Props) => {
3535

3636
<LaughGroup />
3737

38-
<TouchableOpacity onPress={() => navigation.navigate("Matching")}>
38+
<TouchableOpacity onPress={() => navigation.navigate("MyPage")}>
3939
<SlideToPivoting />
4040
</TouchableOpacity>
4141

0 commit comments

Comments
 (0)