-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
67 lines (59 loc) · 1.72 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
// imports
import React from 'react';
import { Platform, StatusBar } from 'react-native';
import { StackNavigator } from 'react-navigation';
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import reducer from './reducers'
const store = createStore(reducer);
// screens
import Choose from './screens/Choose';
import GroupHome from './screens/GroupHome';
import ExampleDetail from './screens/ExampleDetail';
import IdeaDetail from './screens/IdeaDetail';
import Schedule from './screens/Schedule';
import VenueDetail from './screens/VenueDetail';
import VenueWebview from './screens/VenueWebview';
import CalendarPicker from './screens/CalendarPicker';
import Locations from './screens/Locations';
import End from './screens/End';
const routeConfig = {
Choose: { screen: Choose },
GroupHome: { screen: GroupHome },
IdeaDetail: { screen: IdeaDetail },
Schedule: { screen: Schedule },
End: { screen: End },
}
const navigationOptions = {
tintColor: 'red',
headerStyle: {
backgroundColor: 'white'
},
titleStyle: {
color: 'black'
}
};
// navigators
const AppStackNavigator = StackNavigator(routeConfig, navigationOptions);
const AppModalNavigator = StackNavigator({
AppStackNavigator: { screen: AppStackNavigator },
VenueDetail: { screen: VenueDetail },
CalendarPicker: { screen: CalendarPicker },
Locations: { screen: Locations },
VenueWebview: { screen: VenueWebview },
ExampleDetail: { screen: ExampleDetail }
}, {
mode: 'modal',
headerMode: 'none',
cardStyle: {
//paddingTop: Platform.OS === 'ios' ? 0 : StatusBar.currentHeight
}
});
const App = () => {
return(
<Provider store={store}>
<AppModalNavigator />
</Provider>
);
};
export default App;