-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
59 lines (48 loc) · 1.44 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
import React,{Component} from 'react';
import {TabNavigator,StackNavigator,DrawerNavigator} from 'react-navigation';
import Notifications from './Notifications';
import Message from './Message';
import HomeScreen from './HomeScreen';
import Footers from './Footers';
import Headers from './Headers.js';
import SearchScreen from './SearchScreen';
import SearchTab from './SearchTab';
import TabComponent from './TabComponent';
import SideBar from './SideBar';
import {Font} from 'expo';
var MainScreenNavigator= TabNavigator({
Home:{screen: HomeScreen},
Search:{screen:SearchScreen},
Notifications: {screen:Notifications},
Message:{screen: Message}
},{
tabBarComponent:props=>(<TabComponent {...props}/>),
tabBarPosition:'top',
animationEnabled:true,
tabBarOptions:{
activeTintColor:'#007aff',
inactiveTintColor:'grey',
activeBackgroundColor:'blue',
inactiveBackgroundColor:'#fff',
showIcon:true,
showLabel:false,
tabBgColor:"#fff",
topTabActiveBgColor: "#fff",
topTabBarActiveBorderColor: "#007aff"
},
});
const Router = DrawerNavigator({
Home: { screen: MainScreenNavigator,
navigationOptions: { }, },
},
{contentComponent:props=>(<SideBar {...props}/>),
drawerWidth:350}
);
const MyAppNavigator = StackNavigator({
Home: { screen: Router,
navigationOptions:{header:null},
},
SearchTab:{screen:SearchTab,
navigationOptions:{header:null},}
});
export default MyAppNavigator;