| 12345678910111213141516171819202122232425262728293031323334353637 |
- import React from 'react';
- import { Platform, StyleSheet, Text } from 'react-native';
- const HeaderTitle = ({scope, title="", style=styles.titleColor}) => (
- <Text
- ariaLevel="1"
- numberOfLines={1}
- allowFontScaling={false}
- accessibilityRole="header"
- style={[styles.title, style]}>
- {scope ? $t(scope) : title}
- </Text>
- );
- export default HeaderTitle;
- const styles = StyleSheet.create({
- title: Platform.select({
- ios: {
- fontSize: 17,
- fontWeight: '600'
- },
- android: {
- fontSize: 20,
- //fontFamily: 'sans-serif-medium',
- fontWeight: 'normal',
- lineHeight: 26
- },
- default: {
- fontSize: 18,
- fontWeight: '500'
- }
- }),
- titleColor: {
- color: pageTitleTint
- }
- })
|