[RN] Make header button same size as header label

This commit is contained in:
Bettenbuk Zoltan 2019-03-05 19:01:37 +01:00 committed by Zoltan Bettenbuk
parent 55a971c0fd
commit d04068344a
1 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import { StyleSheet } from 'react-native';
import { ColorSchemeRegistry, schemeColor } from '../../../color-scheme';
import { BoxModel } from '../../../styles';
const HEADER_FONT_SIZE = 18;
const HEADER_HEIGHT = 48;
export const HEADER_PADDING = BoxModel.padding / 2;
@ -31,7 +32,7 @@ ColorSchemeRegistry.register('Header', {
headerButtonText: {
color: schemeColor('text'),
fontSize: 20
fontSize: HEADER_FONT_SIZE
},
/**
@ -46,7 +47,7 @@ ColorSchemeRegistry.register('Header', {
*/
headerText: {
color: schemeColor('text'),
fontSize: 18
fontSize: HEADER_FONT_SIZE
},
headerTextWrapper: {