forked from caobo171/wele-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
83 lines (75 loc) · 1.82 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import React from 'react';
import {StyleSheet, Text, View, Image} from 'react-native';
import {createBottomTabNavigator} from 'react-navigation-tabs';
import Icon from 'react-native-vector-icons/FontAwesome';
import Home from './Pages/Home';
import Billboard from './Pages/Billboard';
import {createAppContainer} from 'react-navigation';
import Login from './Pages/Login';
import {createStackNavigator} from 'react-navigation-stack';
import Player from './Pages/Player';
const TabNavigator = createBottomTabNavigator(
{
Home: {
screen: Home,
navigationOptions: {
tabBarLabel: 'Home',
tabBarIcon: ({tintColor}) => (
<Icon name="home" color={tintColor} size={24} />
),
},
},
BillBoard: {
screen: Billboard,
tabBarOptions: {
visible: false,
},
navigationOptions: {
tabBarLabel: 'BillBoard',
tabBarIcon: ({tintColor}) => (
<Icon name="bar-chart" color={tintColor} size={24} />
),
},
},
},
{
tabBarOptions: {
activeTintColor: 'black',
inactiveTintColor: 'grey',
style: {
backgroundColor: 'white',
borderTopWidth: 0,
shadowOffset: {width: 5, height: 3},
shadowColor: 'black',
shadowOpacity: 0.5,
elevation: 5,
},
},
},
);
const OutSideNavigator = createStackNavigator({
Player: {
screen: Player,
},
});
const RootNavigator = createStackNavigator(
{
OutSideNavigator: {
screen: OutSideNavigator,
navigationOptions: {
header: null,
},
},
TabNavigator: {
screen: TabNavigator,
navigationOptions: {
header: null,
},
},
},
{
initialRouteName: 'TabNavigator',
},
);
const AppContainer = createAppContainer(RootNavigator);
export default AppContainer;