Title.js 608 B

123456789101112131415161718192021
  1. // @flow
  2. import { Platform } from 'react-native';
  3. import variable from './../variables/platform';
  4. import { PLATFORM } from './../variables/commonColor';
  5. export default (variables /* : * */ = variable) => {
  6. const titleTheme = {
  7. fontSize: variables.titleFontSize,
  8. fontFamily: variables.titleFontfamily,
  9. color: variables.titleFontColor,
  10. fontWeight: Platform.OS === PLATFORM.IOS ? '700' : undefined,
  11. textAlign: 'center',
  12. paddingLeft: Platform.OS === PLATFORM.IOS ? 4 : 0,
  13. marginLeft: Platform.OS === PLATFORM.IOS ? undefined : -3,
  14. paddingTop: 1
  15. };
  16. return titleTheme;
  17. };