This repository has been archived on 2025-06-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dusken-client/native-base-theme/components/TabHeading.js
T
2017-08-18 00:13:33 +02:00

38 lines
941 B
JavaScript

import variable from "./../variables/platform";
export default (variables = variable) => {
const platform = variables.platform;
const tabHeadingTheme = {
flexDirection: "row",
backgroundColor: variables.tabDefaultBg,
flex: 1,
alignItems: "center",
justifyContent: "center",
".scrollable": {
paddingHorizontal: 20,
flex: platform === "android" ? 0 : 1,
minWidth: platform === "android" ? undefined : 60
},
"NativeBase.Text": {
color: variables.topTabBarTextColor,
marginHorizontal: 7
},
"NativeBase.Icon": {
color: variables.topTabBarTextColor,
fontSize: platform === "ios" ? 26 : undefined
},
".active": {
"NativeBase.Text": {
color: variables.topTabBarActiveTextColor,
fontWeight: "600"
},
"NativeBase.Icon": {
color: variables.topTabBarActiveTextColor
}
}
};
return tabHeadingTheme;
};