-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
55 lines (52 loc) · 1.5 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
import React from 'react';
import { createBottomTabNavigator } from "react-navigation";
import { Icon } from 'native-base';
import Login from './pages/loginRegist';
import Config from './config';
import PostBar from './pages/postBar';
import Chat from './pages/chat';
import My from './pages/my';
import Clock from './pages/clock';
import Footer from './common/Footer';
const AppNavigator = createBottomTabNavigator({
Login: {
screen: Login,
navigationOptions: {
tabBarVisible: false,
}
},
PostBar: {
screen: PostBar,
navigationOptions: {
title: '发现',
tabBarIcon: ({ focused, horizontal, tintColor, }) =>
<Icon theme={{ iconFamily: 'AntDesign' }} name='star'
style={{ color: tintColor }} size={horizontal ? 20 : 25}/>,
},
},
Chat: {
screen: Chat,
navigationOptions: {
title: '聊天',
tabBarIcon: ({ focused, horizontal, tintColor, }) =>
<Icon theme={{ iconFamily: 'AntDesign' }} name='eye'
style={{ color: tintColor }} size={horizontal ? 20 : 25}/>,
},
},
Clock: {
screen: Clock,
navigationOptions: {
title: '提醒',
tabBarIcon: ({ focused, horizontal, tintColor, }) =>
<Icon theme={{ iconFamily: 'Entypo' }} name='clock'
style={{ color: tintColor }} size={horizontal ? 20 : 25}/>,
},
},
My: {
screen: My,
},
}, {
tabBarComponent: props => <Footer {...props}/>,
tabBarOptions: Config.tabBarOptions,
});
export default AppNavigator;