mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
2.9 KiB
117 lines
2.9 KiB
// @flow
|
|
|
|
import variable from '../variables/Platform';
|
|
import { PLATFORM } from '../variables/CommonColor';
|
|
|
|
export default (variables /* : * */ = variable) => {
|
|
const { platformStyle } = variables;
|
|
const { platform } = variables;
|
|
|
|
const iconCommon = {
|
|
'NativeBase.Icon': {
|
|
color: variables.tabBarActiveTextColor,
|
|
},
|
|
};
|
|
const iconNBCommon = {
|
|
'NativeBase.IconNB': {
|
|
color: variables.tabBarActiveTextColor,
|
|
},
|
|
};
|
|
const textCommon = {
|
|
'NativeBase.Text': {
|
|
color: variables.tabBarActiveTextColor,
|
|
},
|
|
};
|
|
const footerTheme = {
|
|
'NativeBase.Left': {
|
|
'NativeBase.Button': {
|
|
'.transparent': {
|
|
backgroundColor: 'transparent',
|
|
borderColor: null,
|
|
elevation: 0,
|
|
shadowColor: null,
|
|
shadowOffset: null,
|
|
shadowRadius: null,
|
|
shadowOpacity: null,
|
|
...iconCommon,
|
|
...iconNBCommon,
|
|
...textCommon,
|
|
},
|
|
alignSelf: null,
|
|
...iconCommon,
|
|
...iconNBCommon,
|
|
// ...textCommon
|
|
},
|
|
flex: 1,
|
|
alignSelf: 'center',
|
|
alignItems: 'flex-start',
|
|
},
|
|
'NativeBase.Body': {
|
|
flex: 1,
|
|
alignItems: 'center',
|
|
alignSelf: 'center',
|
|
flexDirection: 'row',
|
|
'NativeBase.Button': {
|
|
alignSelf: 'center',
|
|
'.transparent': {
|
|
backgroundColor: 'transparent',
|
|
borderColor: null,
|
|
elevation: 0,
|
|
shadowColor: null,
|
|
shadowOffset: null,
|
|
shadowRadius: null,
|
|
shadowOpacity: null,
|
|
...iconCommon,
|
|
...iconNBCommon,
|
|
...textCommon,
|
|
},
|
|
'.full': {
|
|
height: variables.footerHeight,
|
|
paddingBottom: variables.footerPaddingBottom,
|
|
flex: 1,
|
|
},
|
|
...iconCommon,
|
|
...iconNBCommon,
|
|
// ...textCommon
|
|
},
|
|
},
|
|
'NativeBase.Right': {
|
|
'NativeBase.Button': {
|
|
'.transparent': {
|
|
backgroundColor: 'transparent',
|
|
borderColor: null,
|
|
elevation: 0,
|
|
shadowColor: null,
|
|
shadowOffset: null,
|
|
shadowRadius: null,
|
|
shadowOpacity: null,
|
|
...iconCommon,
|
|
...iconNBCommon,
|
|
...textCommon,
|
|
},
|
|
alignSelf: null,
|
|
...iconCommon,
|
|
...iconNBCommon,
|
|
// ...textCommon
|
|
},
|
|
flex: 1,
|
|
alignSelf: 'center',
|
|
alignItems: 'flex-end',
|
|
},
|
|
backgroundColor: variables.footerDefaultBg,
|
|
flexDirection: 'row',
|
|
justifyContent: 'center',
|
|
borderTopWidth:
|
|
platform === PLATFORM.IOS && platformStyle !== PLATFORM.MATERIAL
|
|
? variables.borderWidth
|
|
: undefined,
|
|
borderColor:
|
|
platform === PLATFORM.IOS && platformStyle !== PLATFORM.MATERIAL ? '#cbcbcb' : undefined,
|
|
height: variables.footerHeight,
|
|
paddingBottom: variables.footerPaddingBottom,
|
|
elevation: 3,
|
|
left: 0,
|
|
right: 0,
|
|
};
|
|
return footerTheme;
|
|
};
|
|
|