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';
|
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 titleTheme = {
|
|
|
|
fontSize: variables.titleFontSize,
|
|
|
|
fontFamily: variables.titleFontfamily,
|
|
|
|
color: variables.titleFontColor,
|
2020-01-28 20:07:21 +01:00
|
|
|
fontWeight: Platform.OS === PLATFORM.IOS ? '700' : undefined,
|
|
|
|
textAlign: 'center',
|
|
|
|
paddingLeft: Platform.OS === PLATFORM.IOS ? 4 : 0,
|
|
|
|
marginLeft: Platform.OS === PLATFORM.IOS ? undefined : -3,
|
2019-06-25 22:20:24 +02:00
|
|
|
paddingTop: 1
|
|
|
|
};
|
|
|
|
|
|
|
|
return titleTheme;
|
|
|
|
};
|