Repository navigation
Expand file tree
/
Copy pathroutes.js
More file actions
68 lines (64 loc) · 1.44 KB
/
Copy pathroutes.js
File metadata and controls
68 lines (64 loc) · 1.44 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
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
import {
createStackNavigator,
createAppContainer,
createDrawerNavigator
} from 'react-navigation';
import { fromLeft, fromRight } from 'react-navigation-transitions';
import Login from './screens/Login';
import Register from './screens/Register';
import Home from './screens/Home';
import ProfileView from './screens/ProfileView';
import EditProfileView from './screens/EditProfileView';
import Chat from "./screens/Chat";
import ChatInbox from "./screens/ChatInbox";
import Menu from './screens/Menu';
import Settings from './screens/Settings';
const MainNavigator = createStackNavigator(
{
Login: {
screen: Login,
},
Register: {
screen: Register,
},
Home: {
screen: Home
},
Menu: {
screen: Menu
},
ProfileView: {
screen: ProfileView,
},
EditProfileView: {
screen: EditProfileView,
},
Chat: {
screen: Chat
},
ChatInbox: {
screen: ChatInbox
},
Menu: {
screen: Menu
},
ProfileView: {
screen: ProfileView,
},
EditProfileView: {
screen: EditProfileView,
},
Settings: {
screen: Settings
}
},
{
initialRouteName: 'Login',
headerMode: 'none',
transparentCard: true,
cardStyle: { opacity: 1 },
defaultNavigationOptions: { },
transitionConfig: () => fromRight(),
});
const AppContainer = createAppContainer(MainNavigator);
export default AppContainer;