Kaynağa Gözat

[RN] Make header button same size as header label

j8
Bettenbuk Zoltan 6 yıl önce
ebeveyn
işleme
d04068344a

+ 3
- 2
react/features/base/react/components/native/headerstyles.js Dosyayı Görüntüle

@@ -5,6 +5,7 @@ import { StyleSheet } from 'react-native';
5 5
 import { ColorSchemeRegistry, schemeColor } from '../../../color-scheme';
6 6
 import { BoxModel } from '../../../styles';
7 7
 
8
+const HEADER_FONT_SIZE = 18;
8 9
 const HEADER_HEIGHT = 48;
9 10
 
10 11
 export const HEADER_PADDING = BoxModel.padding / 2;
@@ -31,7 +32,7 @@ ColorSchemeRegistry.register('Header', {
31 32
 
32 33
     headerButtonText: {
33 34
         color: schemeColor('text'),
34
-        fontSize: 20
35
+        fontSize: HEADER_FONT_SIZE
35 36
     },
36 37
 
37 38
     /**
@@ -46,7 +47,7 @@ ColorSchemeRegistry.register('Header', {
46 47
      */
47 48
     headerText: {
48 49
         color: schemeColor('text'),
49
-        fontSize: 18
50
+        fontSize: HEADER_FONT_SIZE
50 51
     },
51 52
 
52 53
     headerTextWrapper: {

Loading…
İptal
Kaydet