-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
141 lines (128 loc) · 3.5 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
import React from "react";
import { createAppContainer, createSwitchNavigator } from "react-navigation";
import { createStackNavigator } from "react-navigation-stack";
import WelcomeScreen from "./welcome.js";
import loginScreen from "./login";
import signUpScreen from "./signup";
import createProfileScreen from "./profile";
import profileDisplayScreen from "./displayprofile";
import artistContentScreen from "./artistcontent";
import authorContentScreen from "./authorcontent";
import writingContentScreen from "./writingcontent";
import matchScreen from "./findingmatch";
import chatHomeScreen from "./chatScreens/homeScreen";
import chatScreen from "./chatScreens/chatScreen";
//Calling in the files for it to stack and work as a moving screen
import LoadingScreen from "./chatScreens/LoadingScreen";
import firebase from "firebase";
console.disableYellowBox = true;
// Web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyAO19aZCQkjfLSIuMdLx1hiLcaLTrioVQ0",
authDomain: "expression-266df.firebaseapp.com",
databaseURL: "https://expression-266df.firebaseio.com",
projectId: "expression-266df",
storageBucket: "expression-266df.appspot.com",
messagingSenderId: "775498698408",
appId: "1:775498698408:web:9232c6f6778146cd557c9d",
measurementId: "G-0RCR4RTM7L"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
//Calling in the files for it to stack and work as a moving screen
// const MainNavigator = createStackNavigator({
// Welcome: WelcomeScreen,
// Login: loginScreen,
// Signup: signUpScreen,
// // Profile: ProfileScreen,
// EditProfile: createProfileScreen,
// DisplayProfile: profileDisplayScreen,
// ArtistContent: artistContentScreen,
// AuthorContent: authorContentScreen,
// Chat: chatScreen
// });
const MainNavigator = createStackNavigator({
Welcome: {
screen: WelcomeScreen,
navigationOptions: () => ({
title: `Welcome`,
headerBackTitle: null
})
},
Login: {
screen: loginScreen,
navigationOptions: () => ({
title: `Login Page`,
headerBackTitle: null
})
},
ChatHomeScreen: {
screen: chatHomeScreen,
navigationOptions: () => ({
title: `Chat Home Screen`,
headerBackTitle: null
})
},
ChatScreen: {
screen: chatScreen,
navigationOptions: () => ({
title: `Chat`,
headerBackTitle: null
})
},
Signup: {
screen: signUpScreen,
navigationOptions: () => ({
title: `Sign Up Page`,
headerBackTitle: null
})
},
EditProfile: {
screen: createProfileScreen,
navigationOptions: () => ({
title: `Edit Profile`,
headerBackTitle: null
})
},
DisplayProfile: {
screen: profileDisplayScreen,
navigationOptions: () => ({
title: "Profile",
headerBackTitle: null
})
},
ArtistContent: {
screen: artistContentScreen,
navigationOptions: () => ({
title: `Artist`,
headerBackTitle: null
})
},
AuthorContent: {
screen: authorContentScreen,
navigationOptions: () => ({
title: `Author`,
headerBackTitle: null
})
},
WritingContent: {
screen: writingContentScreen,
navigationOptions: () => ({
title: `Edit Content`,
headerBackTitle: null
})
},
MatchContent: {
screen: matchScreen,
navigationOptions: () => ({
title: "Matching",
headerBackTitle: null
})
}
});
const AppContainer = createAppContainer(MainNavigator);
export default class App extends React.Component {
render() {
return <AppContainer />;
}
}