소스 검색

update docs

Guy Carmeli 5 년 전
부모
커밋
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
 ```