@aks-dev/easyui 1.0.53 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "爱科森开发工具包(react-native)",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
package/screen/index.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-19 10:25:14
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-31 17:19:03
5
+ * @LastEditTime: 2022-05-31 18:34:57
6
6
  * @FilePath: /@aks-dev/easyui/screen/index.ts
7
7
  */
8
8
  export declare const deviceWidth: number; //设备的宽度
@@ -19,7 +19,7 @@ export declare const isiPhoneX: boolean;
19
19
  */
20
20
  export declare const statusBarHeight: number;
21
21
  /**
22
- * @description: 顶部导航条的高度
22
+ * @description: 顶部导航条的高度,高度不包含statusBarHeight
23
23
  * @param {*}
24
24
  * @return {*}
25
25
  */
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-18 14:32:25
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-31 18:22:35
6
- * @FilePath: /@aks-dev/easyui/screen/px2dp.tsx
5
+ * @LastEditTime: 2022-05-31 18:34:36
6
+ * @FilePath: /@aks-dev/easyui/screen/px2dp.ts
7
7
  */
8
8
  import { Dimensions, Platform, StatusBar } from 'react-native';
9
9
 
@@ -46,16 +46,16 @@ export const statusBarHeight = (() => {
46
46
 
47
47
 
48
48
  export let navigationBarHeight = (() => {
49
- if (isAndroid) return statusBarHeight + 44
50
- if (isiPhoneX) return 88
51
- return 64
49
+ if (isAndroid) return statusBarHeight
50
+ if (isiPhoneX) return 44
51
+ return 24
52
52
  })()
53
53
 
54
54
 
55
55
 
56
56
  import * as RNEasyui from '../jsbridge/RNEasyui';
57
57
  ; (async () => {
58
- navigationBarHeight = await RNEasyui.getNavigationBarHeight() + statusBarHeight;
58
+ navigationBarHeight = await RNEasyui.getNavigationBarHeight();
59
59
  })()
60
60
 
61
61
 
File without changes
File without changes
File without changes