-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
61 lines (52 loc) · 1.29 KB
/
Copy pathApp.js
File metadata and controls
61 lines (52 loc) · 1.29 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React from 'react';
import { Provider } from 'react-redux';
import { createStackNavigator, createDrawerNavigator } from 'react-navigation';
import { Button } from 'react-native'
import Ionicons from 'react-native-vector-icons/Ionicons';
import store from './src/store.js'
import Pictures from './src/components/pictures.js'
import Settings from './src/components/Settings.js'
import Home from './src/components/Home.js'
const App = () => (
<Provider store={store}>
<Navigator />
</Provider>
);
const Navigator = createStackNavigator({
Home: Home,
Pictures:Pictures,
Settings: Settings,
},
{
initialRouteName: 'Home',
headerMode: 'none'
/* The header config from HomeScreen is now here */
// navigationOptions: {
// headerStyle: {
// display: 'none',
// },
// headerTintColor: '#fff',
// headerTitleStyle: {
// fontWeight: 'bold',
// },
// headerRight: (
// <Button
// onPress={() => alert('This is a button!')}
// title="Info"
// color="#fff"
// />
// ),
// },
}
);
const drawerNavigator = createDrawerNavigator ({
Main: {
screen: Home
}
})
export default App;