Browse Source

update docs

Guy Carmeli 6 years ago
parent
commit
1282131264
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      docs/docs/constants.md

+ 6
- 3
docs/docs/constants.md View File

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