-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathApp.js
46 lines (44 loc) · 1.14 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
import { Navigation } from 'react-native-navigation';
import { registerScreens } from './src/screen/index';
import { Provider } from 'react-redux';
import configuerStore from './src/store/index';
const { store } = configuerStore(() => { });
// 执行注册页面方法
registerScreens(store, Provider);
// 启动app
Navigation.startTabBasedApp({
tabs: [
{
label: 'home',
screen: 'home',
title: '首页',
icon: require('./src/assets/home.png')
},
{
screen: 'popularize',
title: '推广',
icon: require('./src/assets/add.png'),
iconInsets: {
top: 5,
left: 0,
bottom: -5,
right: 0
}
},
{
label: 'mine',
screen: 'mine',
title: '我',
icon: require('./src/assets/mine.png')
}
],
appStyle: {
navBarBackgroundColor: '#292f33', //顶部导航栏背景颜色
navBarTextColor: 'white' //顶部导航栏字体颜色
},
tabsStyle: {
tabBarButtonColor: '#ccc', //底部按钮颜色
tabBarSelectedButtonColor: '#08cb6a', //底部按钮选择状态颜色
tabBarBackgroundColor: '#E6E6E6' //顶部条背景颜色
}
});