-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathApp.js
51 lines (44 loc) · 1.7 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
import React, { Component } from 'react';
import { createSwitchNavigator, createAppContainer } from 'react-navigation';
import LoginScreen from './src/components/login/LoginComponent';
import SignupScreen from './src/components/login/SignupComponent';
import Setup from './src/components/setup/SetupComponent';
import Dashboard from './src/components/dashboard/DashboardComponent';
import CreatePlanner from './src/components/createplanner/CreatePlannerComponent';
import EventDetails from './src/components/calendar/EventDetailsComponent';
import Record from './src/components/record/RecordComponent';
import Search from './src/components/search/PlannerSearchComponent';
import Announcement from './src/components/announcement/Announcement';
import AnnoucementDetails from './src/components/announcement/AnnouncementDetails';
import Message from './src/components/message/MessageComponent';
import { Provider } from 'react-redux';
import store from './src/store';
const MainNavigator = createSwitchNavigator(
{
Login: { screen: LoginScreen },
Signup: { screen: SignupScreen },
Setup: { screen: Setup },
Dashboard: { screen: Dashboard },
CreatePlanner: { screen: CreatePlanner },
Record: { screen: Record },
Message: { screen: Message },
Event: { screen: EventDetails },
Search: { screen: Search },
Announcement: { screen: Announcement },
AnnoucementDetails: { screen: AnnoucementDetails }
},
{
headerMode: 'none',
navigationOptions: {
headerVisible: false,
},
},
);
const AppContainer = createAppContainer(MainNavigator);
export default class App extends Component {
render() {
return <Provider store={store}>
<AppContainer />
</Provider>
}
}