|
@@ -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
|
```
|