浏览代码

[RN] Make header button same size as header label

j8
Bettenbuk Zoltan 6 年前
父节点
当前提交
d04068344a
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      react/features/base/react/components/native/headerstyles.js

+ 3
- 2
react/features/base/react/components/native/headerstyles.js 查看文件

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

正在加载...
取消
保存