-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js.bak
123 lines (111 loc) · 3.58 KB
/
App.js.bak
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
import React from "react";
import { AppRegistry } from "react-native";
import { createStackNavigator, createBottomTabNavigator, createAppContainer } from "react-navigation";
import Icon from 'react-native-vector-icons/FontAwesome';
import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
import SettingsScreen from "./Components/Settings/Settings"
import MainScreen from "./Components/Main/Main"
import TimeTables from "./Components/TimeTables/TimeTables"
import BulletinBoards from "./Components/BulletinBoards/BulletinBoards"
import BulletinBoardsContent from "./Components/BulletinBoards/BulletinBoardsContent"
import BulletinBoardsEditEntry from "./Components/BulletinBoards/BulletinBoardsEditEntry";
import BulletinBoardsLists from "./Components/BulletinBoards/BulletinBoardsLists";
import CourseEvaluation from './Components/Course_Evaluation/CourseEvaluation';
import CalendarScreen from './Components/EventCalendar/EventCalendar'
import BulletinBoardsMain from "./Components/BulletinBoards/BulletinBoardsMain";
import BulletinBoardsSearch from "./Components/BulletinBoards/BulletinBoardsSearch";
import Test from './Components/Course_Evaluation/screen/Test'
const MainStack = createStackNavigator({
Main: MainScreen,
});
const SettingsStack = createStackNavigator({
Settings: SettingsScreen,
});
const BulletinBoardsStack = createStackNavigator({
BulletinBoardsMain: BulletinBoardsMain,
BulletinBoardsLists: BulletinBoardsLists,
BulletinBoards: BulletinBoards,
Post: BulletinBoardsContent,
EntryEdit: BulletinBoardsEditEntry,
Search: BulletinBoardsSearch,
});
const TimeTablesStack = createStackNavigator({
TimeTables: TimeTables,
});
const TabNavigator = createBottomTabNavigator(
{
Main : {
screen : MainStack,
navigationOptions : {
tabBarLabel : 'Main',
tabBarIcon : ({tintColor}) => (<Icon name="home" color={tintColor} size = {20}/>)
}
},
BulletinBoards : {
screen : BulletinBoardsStack,
navigationOptions : {
tabBarLabel : 'BulletinBoards',
tabBarIcon : ({tintColor}) => (<Icon name="list" color={tintColor} size = {20}/>)
}
},
CalendarScreen : {
screen : CalendarScreen,
navigationOptions : {
tabBarLabel : 'CalendarScreen',
tabBarIcon : ({tintColor}) => (<Icon name="calendar" color={tintColor} size = {20}/>)
}
},
Settings : {
screen : SettingsStack,
navigationOptions : {
tabBarLabel : 'Settings',
tabBarIcon : ({tintColor}) => (<Icon name="cog" color={tintColor} size = {20}/>)
}
},
CourseEvaluation : {
screen : CourseEvaluation,
navigationOptions : {
tabBarLabel : 'CourseEvaluation',
tabBarIcon : ({tintColor}) => (<Icon name="star" color={tintColor} size = {20}/>)
}
},
Test : {
screen : Test,
navigationOptions : {
tabBarLabel : 'Test',
tabBarIcon : ({tintColor}) => (<Icon name="star" color={tintColor} size = {20}/>)
}
},
}
);
/*
const TabNavigator = createBottomTabNavigator(
{
Main: MainStack,
BulletinBoards: BulletinBoardsStack,
TimeTables : TimeTablesStack,
Settings: SettingsStack,
CourseEvaluation : CourseEvaluation,
}
);
*/
const AppContainer = createAppContainer(TabNavigator);
const theme = {
...DefaultTheme,
roundness: 2,
dark: true,
colors: {
...DefaultTheme.colors,
primary: '#3498db',
accent: '#f1c40f',
}
};
export default class App extends React.Component {
render() {
return (
<PaperProvider>
<AppContainer />
</PaperProvider>
);
}
}