2019-06-25 22:20:24 +02:00
|
|
|
// @flow
|
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
import variable from './../variables/platform';
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
export default (variables /* : * */ = variable) => {
|
2019-06-25 22:20:24 +02:00
|
|
|
const tabBarTheme = {
|
2020-01-28 20:07:21 +01:00
|
|
|
'.tabIcon': {
|
2019-06-25 22:20:24 +02:00
|
|
|
height: undefined
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.vertical': {
|
2019-06-25 22:20:24 +02:00
|
|
|
height: 60
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.Button': {
|
|
|
|
'.transparent': {
|
|
|
|
'NativeBase.Text': {
|
2019-06-25 22:20:24 +02:00
|
|
|
fontSize: variables.tabFontSize,
|
|
|
|
color: variables.sTabBarActiveTextColor,
|
2020-01-28 20:07:21 +01:00
|
|
|
fontWeight: '400'
|
2019-06-25 22:20:24 +02:00
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.IconNB': {
|
2019-06-25 22:20:24 +02:00
|
|
|
color: variables.sTabBarActiveTextColor
|
|
|
|
}
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.IconNB': {
|
2019-06-25 22:20:24 +02:00
|
|
|
color: variables.sTabBarActiveTextColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.Text': {
|
2019-06-25 22:20:24 +02:00
|
|
|
fontSize: variables.tabFontSize,
|
|
|
|
color: variables.sTabBarActiveTextColor,
|
2020-01-28 20:07:21 +01:00
|
|
|
fontWeight: '400'
|
2019-06-25 22:20:24 +02:00
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.isTabActive': {
|
|
|
|
'NativeBase.Text': {
|
|
|
|
fontWeight: '900'
|
2019-06-25 22:20:24 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
flex: 1,
|
2020-01-28 20:07:21 +01:00
|
|
|
alignSelf: 'stretch',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
2019-06-25 22:20:24 +02:00
|
|
|
borderRadius: null,
|
2020-01-28 20:07:21 +01:00
|
|
|
borderBottomColor: 'transparent',
|
2019-06-25 22:20:24 +02:00
|
|
|
backgroundColor: variables.tabBgColor
|
|
|
|
},
|
|
|
|
height: 45,
|
2020-01-28 20:07:21 +01:00
|
|
|
flexDirection: 'row',
|
|
|
|
justifyContent: 'space-around',
|
2019-06-25 22:20:24 +02:00
|
|
|
borderWidth: 1,
|
|
|
|
borderTopWidth: 0,
|
|
|
|
borderLeftWidth: 0,
|
|
|
|
borderRightWidth: 0,
|
2020-01-28 20:07:21 +01:00
|
|
|
borderBottomColor: '#ccc',
|
2019-06-25 22:20:24 +02:00
|
|
|
backgroundColor: variables.tabBgColor
|
|
|
|
};
|
|
|
|
|
|
|
|
return tabBarTheme;
|
|
|
|
};
|