This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
mobile-app/src/libs/native-base/components/Title.ts
2021-04-04 14:31:01 +02:00

20 lines
599 B
TypeScript

import { Platform } from 'react-native';
import variable from '../variables/platform';
import { OS } from '../variables/types';
export default (variables /* : * */ = variable) => {
const titleTheme = {
fontSize: variables.titleFontSize,
fontFamily: variables.titleFontFamily,
color: variables.titleFontColor,
fontWeight: Platform.OS === OS.IOS ? '700' : undefined,
textAlign: Platform.OS === OS.IOS ? 'center' : 'left',
paddingLeft: Platform.OS === OS.IOS ? 4 : 0,
marginLeft: Platform.OS === OS.IOS ? undefined : -3,
paddingTop: 1,
};
return titleTheme;
};