mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
隐藏 tabbar 文字
This commit is contained in:
parent
d159650186
commit
7ba58507b7
1 changed files with 22 additions and 9 deletions
|
@ -1,7 +1,15 @@
|
||||||
import Color from '../style/color'
|
import Color from '../style/color'
|
||||||
import {Icon} from '../style/icon'
|
import {Icon} from '../style/icon'
|
||||||
|
|
||||||
|
let insets = { // add this to change icon position (optional, iOS only).
|
||||||
|
top: 6, // optional, default is 0.
|
||||||
|
left: 0, // optional, default is 0.
|
||||||
|
bottom: -6, // optional, default is 0.
|
||||||
|
right: 0 // optional, default is 0.
|
||||||
|
};
|
||||||
|
|
||||||
function config(splash) {
|
function config(splash) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
root: {
|
root: {
|
||||||
bottomTabs: {
|
bottomTabs: {
|
||||||
|
@ -41,7 +49,7 @@ function config(splash) {
|
||||||
}],
|
}],
|
||||||
options: {
|
options: {
|
||||||
bottomTab: {
|
bottomTab: {
|
||||||
text: '首页',
|
text: '', //首页
|
||||||
icon: Icon.homeIcon,
|
icon: Icon.homeIcon,
|
||||||
|
|
||||||
// ios
|
// ios
|
||||||
|
@ -50,6 +58,7 @@ function config(splash) {
|
||||||
// android
|
// android
|
||||||
iconColor: '#aaa',
|
iconColor: '#aaa',
|
||||||
selectedIconColor: Color.primary,
|
selectedIconColor: Color.primary,
|
||||||
|
iconInsets: insets,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +71,7 @@ function config(splash) {
|
||||||
}],
|
}],
|
||||||
options: {
|
options: {
|
||||||
bottomTab: {
|
bottomTab: {
|
||||||
text: '关注',
|
text: '', //关注
|
||||||
icon: Icon.followIcon,
|
icon: Icon.followIcon,
|
||||||
|
|
||||||
// ios
|
// ios
|
||||||
|
@ -70,7 +79,8 @@ function config(splash) {
|
||||||
|
|
||||||
// android
|
// android
|
||||||
iconColor: '#aaa',
|
iconColor: '#aaa',
|
||||||
selectedIconColor: Color.primary
|
selectedIconColor: Color.primary,
|
||||||
|
iconInsets: insets,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,7 +99,7 @@ function config(splash) {
|
||||||
}],
|
}],
|
||||||
options: {
|
options: {
|
||||||
bottomTab: {
|
bottomTab: {
|
||||||
text: '写日记',
|
text: '', //写日记
|
||||||
icon: Icon.writeIcon,
|
icon: Icon.writeIcon,
|
||||||
|
|
||||||
// ios
|
// ios
|
||||||
|
@ -97,7 +107,8 @@ function config(splash) {
|
||||||
|
|
||||||
// android
|
// android
|
||||||
iconColor: '#aaa',
|
iconColor: '#aaa',
|
||||||
selectedIconColor: Color.primary
|
selectedIconColor: Color.primary,
|
||||||
|
iconInsets: insets,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -117,7 +128,7 @@ function config(splash) {
|
||||||
}],
|
}],
|
||||||
options: {
|
options: {
|
||||||
bottomTab: {
|
bottomTab: {
|
||||||
text: '提醒',
|
text: '', //提醒
|
||||||
icon: Icon.tipIcon,
|
icon: Icon.tipIcon,
|
||||||
|
|
||||||
// ios
|
// ios
|
||||||
|
@ -125,7 +136,8 @@ function config(splash) {
|
||||||
|
|
||||||
// android
|
// android
|
||||||
iconColor: '#aaa',
|
iconColor: '#aaa',
|
||||||
selectedIconColor: Color.primary
|
selectedIconColor: Color.primary,
|
||||||
|
iconInsets: insets,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +157,7 @@ function config(splash) {
|
||||||
}],
|
}],
|
||||||
options: {
|
options: {
|
||||||
bottomTab: {
|
bottomTab: {
|
||||||
text: '我',
|
text: '', //我
|
||||||
icon: Icon.myIcon,
|
icon: Icon.myIcon,
|
||||||
|
|
||||||
// ios
|
// ios
|
||||||
|
@ -153,7 +165,8 @@ function config(splash) {
|
||||||
|
|
||||||
// android
|
// android
|
||||||
iconColor: '#aaa',
|
iconColor: '#aaa',
|
||||||
selectedIconColor: Color.primary
|
selectedIconColor: Color.primary,
|
||||||
|
iconInsets: insets,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue