@aks-dev/easyui 1.0.58 → 1.0.59

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/jsbridge/index.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-19 10:23:01
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-31 18:19:53
5
+ * @LastEditTime: 2022-06-02 11:03:49
6
6
  * @FilePath: /@aks-dev/easyui/jsbridge/index.ts
7
7
  */
8
8
 
@@ -39,6 +39,7 @@ export declare const upgrade: (options: UpgradeOptions) => Promise<string>;
39
39
  export declare const getStatusBarHeight: () => Promise<number>;
40
40
 
41
41
  /**
42
+ * @deprecated 测量不准确,已放弃
42
43
  * @description: 获取navigation_bar_height
43
44
  * @return {*}
44
45
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "移动端开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
package/screen/px2dp.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-18 14:32:25
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-31 18:43:44
5
+ * @LastEditTime: 2022-06-02 11:04:21
6
6
  * @FilePath: /@aks-dev/easyui/screen/px2dp.ts
7
7
  */
8
8
  import { Dimensions, Platform, StatusBar } from 'react-native';
@@ -36,22 +36,16 @@ export const px2dp = (uiElePx: number) => {
36
36
 
37
37
 
38
38
  export const statusBarHeight = (() => {
39
- if (isAndroid) {
40
- if ((StatusBar.currentHeight || 0) > 20) return 40
41
- }
39
+ if (isAndroid) return StatusBar.currentHeight || 24
42
40
  if (isiPhoneX) return 44
43
41
  return 20
44
42
  })()
45
43
 
46
44
 
47
45
 
48
- export let navigationBarHeight = 44
49
-
50
-
51
-
52
- import * as RNEasyui from '../jsbridge/RNEasyui';
53
- ; (async () => {
54
- navigationBarHeight = await RNEasyui.getNavigationBarHeight();
46
+ export const navigationBarHeight = (() => {
47
+ if (isAndroid) return 56
48
+ return 44
55
49
  })()
56
50
 
57
51
 
@@ -2,8 +2,8 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-15 14:15:07
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-31 18:22:50
6
- * @FilePath: /@aks-dev/easyui/screen/init-fit.tsx
5
+ * @LastEditTime: 2022-06-02 11:03:59
6
+ * @FilePath: /@aks-dev/easyui/screen/text-fit.tsx
7
7
  */
8
8
  /**
9
9
  * 全局配置Text
@@ -58,5 +58,3 @@ Text.defaultProps.allowFontScaling = false
58
58
  TextInput.defaultProps.allowFontScaling = false
59
59
 
60
60
 
61
-
62
- import './px2dp'