2019-06-25 22:20:24 +02:00
|
|
|
// @flow
|
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
import { Platform } from 'react-native';
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
import variable from './../variables/platform';
|
|
|
|
import { PLATFORM } from './../variables/commonColor';
|
|
|
|
|
|
|
|
export default (variables /* : * */ = variable) => {
|
2019-06-25 22:20:24 +02:00
|
|
|
const platformStyle = variables.platformStyle;
|
|
|
|
|
|
|
|
const tabContainerTheme = {
|
|
|
|
elevation: 3,
|
|
|
|
height: 50,
|
2020-01-28 20:07:21 +01:00
|
|
|
flexDirection: 'row',
|
|
|
|
shadowColor: platformStyle === PLATFORM.MATERIAL ? '#000' : undefined,
|
|
|
|
shadowOffset:
|
|
|
|
platformStyle === PLATFORM.MATERIAL ? { width: 0, height: 2 } : undefined,
|
|
|
|
shadowOpacity: platformStyle === PLATFORM.MATERIAL ? 0.2 : undefined,
|
|
|
|
shadowRadius: platformStyle === PLATFORM.MATERIAL ? 1.2 : undefined,
|
|
|
|
justifyContent: 'space-around',
|
|
|
|
borderBottomWidth: Platform.OS === PLATFORM.IOS ? variables.borderWidth : 0,
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.topTabBarBorderColor
|
|
|
|
};
|
|
|
|
|
|
|
|
return tabContainerTheme;
|
|
|
|
};
|