-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
108 lines (100 loc) · 3.08 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
/**
* Morgan State Mobile App
* Using react-native
* @Bisi
*/
import React from 'react';
import { StackNavigator, DrawerNavigator, TabNavigator } from 'react-navigation';
import Home from './src/components/home';
import Events from './src/components/events';
import Calendars from './src/components/events/calendar';
import CalendarList from './src/components/events/calendarList';
import Agenda from './src/components/events/agenda';
import News from './src/components/news';
import Newsdata from './src/components/newsdata';
import MyMSU from './src/components/mymsu';
import Athletics from './src/components/athletics';
import Videos from './src/components/videos';
import Photos from './src/components/photos';
import TodayView from './src/components/weather/todayView';
import ForecastView from './src/components/weather/forecastView';
import Drawer from './src/Drawer';
import SideBar from './src/components/sidebar';
import Weather from './src/components/weather/';
import NearMe from './src/components/nearme/';
import Facebook from './src/components/facebook/';
import Twitter from './src/components/twitter/';
import Instagram from './src/components/instagram/';
const myDrawer = DrawerNavigator(
{
Home: { screen: Home },
MyMSU: { screen: MyMSU },
Events: { screen: Events },
Calendars: { screen: Calendars },
CalendarList: { screen: CalendarList },
Agenda: { screen: Agenda },
News: { screen: News },
Newsdata: { screen: Newsdata },
Athletics: { screen: Athletics },
Photos: { screen: Photos },
NearMe: { screen: NearMe },
Videos: { screen: Videos },
Tabs: { screen: Weather },
Forecast: { screen: ForecastView },
Today: { screen: TodayView },
// Facebook: { screen: Facebook },
// Twitter: { screen: Twitter },
// Instagram: { screen: Instagram },
},
{
initialRouteName: 'Home',
contentOptions: {
activeTintColor: '#e91e63',
},
contentComponent: props => <SideBar {...props} />,
},
);
export const Tabs = TabNavigator(
{
Forecast: { screen: ForecastView },
Today: { screen: TodayView },
},
{
// tabBarPosition: 'bottom',
animationEnabled: true,
tabBarOptions: {
activeTintColor: '#e91e63',
},
},
);
const msuMobile = StackNavigator(
{
Drawer: { screen: Drawer },
Home: { screen: myDrawer },
MyMSU: { screen: MyMSU },
Events: { screen: Events },
Calendars: { screen: Calendars },
CalendarList: { screen: CalendarList },
Agenda: { screen: Agenda },
News: { screen: News },
Newsdata: { screen: Newsdata },
Athletics: { screen: Athletics },
Photos: { screen: Photos },
NearMe: { screen: NearMe },
Videos: { screen: Videos },
Tabs: { screen: Tabs },
// Facebook: { screen: Facebook },
// Twitter: { screen: Twitter },
// Instagram: { screen: Instagram },
MainNavigator: {
screen: ({ navigation, screenProps }) => (<myDrawer
screenProps={{ parentNavigation: navigation, ...screenProps }}
/>),
},
},
{
initialRouteName: 'Drawer',
headerMode: 'none',
},
);
export default msuMobile;