-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
93 lines (87 loc) · 3.09 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { NavigationContainer } from "@react-navigation/native";
import { View, Text, TextInput } from "react-native";
import React, { Component, Fragment } from "react";
import { createStackNavigator, HeaderBackButton } from "@react-navigation/stack";
import { Button, Icon } from 'native-base';
import LoginScreen from "./views/login/caller";
import Register_form from './views/registration/caller';
import FindId from './views/findid/caller';
import FindPw from './views/findpw/caller';
import PostIndex from "./views/post/index";
import C_I from './views/post/category_index';
import Post_provide from './views/post/post_provide';
import Post_ask from './views/post/post_ask';
import SearchBar from './views/post/search_bar';
import chatIndex from './views/chat/chat_index';
import PostShow from './views/post/postshow';
import ProvidingList from './views/post/providerindex';
import ChatRoom from './views/chat/chat_room';
import MyPage from './views/mypage/caller';
import MyPgae_Location from './views/mypage/location';
import Mypage_Like_List from './views/mypage/likeList';
const Stack = createStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Logins">
<Stack.Screen name='Logins' component={LoginScreen} options={{ headerShown: false }} />
<Stack.Screen name='Register' component={Register_form} />
<Stack.Screen name="Find_id" component={FindId} />
<Stack.Screen name="Find_pw" component={FindPw} />
<Stack.Screen name='postIndex' component={PostIndex} options={{ headerShown: false }} />
<Stack.Screen name='C_index' component={C_I} />
<Stack.Screen name="Chats" component={chatIndex}
options={{
title: '채팅',
headerLeft: null,
}}
/>
<Stack.Screen
name="P_W_p"
component={Post_provide}
options={{
headerTitle: '대여글 쓰기',
headerTitleStyle: {fontSize: 25},
}}
/>
<Stack.Screen
name="P_W_c"
component={Post_ask}
options={{
headerTitle: '대여요청글 쓰기',
headerTitleStyle: {fontSize: 25},
}}
/>
<Stack.Screen name="Seach" component={SearchBar} />
<Stack.Screen name="PostShow" component={PostShow} />
<Stack.Screen
name="ChatRoom"
component={ChatRoom}
options={{headerShown: false}}
/>
<Stack.Screen
name="MyPage"
component={MyPage}
options={{headerShown: false}}
/>
<Stack.Screen
name="MyPage_Location"
component={MyPgae_Location}
options={{
headerTitle: '동네 설정',
headerTitleStyle: {fontSize: 25},
}}
/>
<Stack.Screen
name="Like_List"
component={Mypage_Like_List}
options={{
headerTitle: '관심 목록',
headerTitleStyle: {fontSize: 25},
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;