-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
45 lines (41 loc) · 1.21 KB
/
App.js
File metadata and controls
45 lines (41 loc) · 1.21 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
import React from 'react'
import { createAppContainer } from 'react-navigation'
import { createStackNavigator } from 'react-navigation-stack'
import { Provider } from 'unstated'
import WelcomeScreen from './screens/WelcomeScreen'
import ScreenA from './screens/ScreenA'
import ScreenB from './screens/ScreenB'
import ScreenC from './screens/ScreenC'
import ScreenAddLoc from './screens/ScreenAddLoc'
//----------------------------------------------------------------------
//Stack of all the rootes for the various screens
const RootStack = createStackNavigator(
{
Welcome: WelcomeScreen,
NearBy: ScreenA,
PersistentLocations: ScreenB,
SavedArticles: ScreenC,
AddNewLocation: ScreenAddLoc
},
{
defaultNavigationOptions: {
headerStyle: {
backgroundColor: '#f4511e'
},
headerTintColor: 'black',
headerTitleStyle: {
fontWeight: 'bold'
},
}
}
)
const AppContainer = createAppContainer(RootStack)
//----------------------------------------------------------------------
//Application container
const App = props => (
<Provider>
<AppContainer />
</Provider>
)
//----------------------------------------------------------------------
export default App