-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScreenContainer.js
51 lines (44 loc) · 1.46 KB
/
ScreenContainer.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 { createBottomTabNavigator } from 'react-navigation-tabs';
import AuthScreen from './screens/AuthScreen'
import WelcomeScreen from './screens/WelcomeScreen'
import { createAppContainer } from 'react-navigation';
import MapScreen from './screens/MapScreen';
import DeckScreen from './screens/DeckScreen';
import { createStackNavigator } from 'react-navigation-stack';
import ReviewScreen from './screens/ReviewScreen';
import SettingsScreen from './screens/SettingsScreen';
import React,{Component} from 'react'
import { Icon } from 'react-native-elements';
const MainNavigator=createBottomTabNavigator({
welcome:{screen:WelcomeScreen},
auth:{screen:AuthScreen},
main:{
screen: createBottomTabNavigator({
map:{screen:MapScreen},
deck:{screen:DeckScreen},
review:{
navigationOptions:{
title:'Review Jobs',
tabBarIcon:({tintColor})=>{
return (<Icon name="favorite" size={30} color={tintColor} />);
}
},
screen:createStackNavigator({
review:{screen:ReviewScreen},
setting:{screen:SettingsScreen}
})
}
},{
tabBarOptions:{
labelStyle:{fontSize:12}
}
})
}
},{
lazy:true,
defaultNavigationOptions:{
tabBarVisible:false
}
})
const Container =createAppContainer(MainNavigator)
export default Container