瀏覽代碼

update docs

Guy Carmeli 6 年之前
父節點
當前提交
1282131264
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6
    3
      docs/docs/constants.md

+ 6
- 3
docs/docs/constants.md 查看文件

@@ -2,15 +2,18 @@
2 2
 
3 3
 ## statusBarHeight
4 4
 ```js
5
-const statusBarHeight = Navigation.constants().statusBarHeight;
5
+const constants = await Navigation.constants();
6
+const statusBarHeight = constants.statusBarHeight;
6 7
 ```
7 8
 
8 9
 ## topBarHeight
9 10
 ```js
10
-const topBarHeight = Navigation.constants().topBarHeight;
11
+const constants = await Navigation.constants();
12
+const topBarHeight = constants.topBarHeight;
11 13
 ```
12 14
 
13 15
 ## bottomTabsHeight
14 16
 ```js
15
-const bottomTabsHeight = Navigation.constants().bottomTabsHeight;
17
+const constants = await Navigation.constants();
18
+const bottomTabsHeight = constants.bottomTabsHeight;
16 19
 ```