@aks-dev/easyui 1.0.54 → 1.0.57

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: shiguo
3
3
  * @Date: 2022-04-25 17:57:29
4
4
  * @LastEditors: shiguo
5
- * @LastEditTime: 2022-05-30 16:17:16
5
+ * @LastEditTime: 2022-06-01 10:11:48
6
6
  * @FilePath: /@aks-dev/easyui/README.md
7
7
  -->
8
8
 
@@ -15,6 +15,9 @@ or
15
15
  `$ yarn add @aks-dev/easyui`
16
16
 
17
17
 
18
+ ### App入口
19
+ + <b>import '@aks-dev/easyui/screen/text-fit'</b>
20
+
18
21
  ### UI组件
19
22
 
20
23
  + Badge
@@ -33,7 +36,7 @@ or
33
36
  ### 工具包
34
37
  |函数|作用|
35
38
  |:----|:----|
36
- |sleep|睡眠时间|
39
+ |sleep|睡眠|
37
40
  |keyboardDismissHandlers|通过手势关闭键盘|
38
41
  |panHandlersCallback|手势动作回调|
39
42
  |callTelephone|拨打电话|
@@ -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 17:26:16
5
+ * @LastEditTime: 2022-05-31 18:42:45
6
6
  * @FilePath: /@aks-dev/easyui/jsbridge/RNEasyui.ts
7
7
  */
8
8
 
@@ -19,12 +19,12 @@ export const getStatusBarHeight = () => {
19
19
  const deviceHeight = Dimensions.get('window').height;
20
20
  const isiPhoneX = Platform.OS == 'ios' && (deviceHeight > 736)
21
21
  if (isiPhoneX) return Promise.resolve(44)
22
+ return Promise.resolve(20)
22
23
  }
23
24
 
24
25
  export const getNavigationBarHeight = () => {
25
26
  if (Platform.OS == 'android') return RNEasyui.getNavigationBarHeight();
26
- const deviceHeight = Dimensions.get('window').height;
27
- const isiPhoneX = Platform.OS == 'ios' && (deviceHeight > 736)
28
- if (isiPhoneX) return Promise.resolve(88)
29
- return Promise.resolve(64)
27
+
28
+ return Promise.resolve(44)
29
+
30
30
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.54",
4
- "description": "爱科森开发工具包(react-native)",
3
+ "version": "1.0.57",
4
+ "description": "移动端开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
7
7
  "scripts": {
@@ -10,8 +10,8 @@
10
10
  "keywords": [
11
11
  "react",
12
12
  "react-native",
13
- "@aks-dev",
14
- "easyui"
13
+ "easyui",
14
+ "爱科森开发"
15
15
  ],
16
16
  "files": [
17
17
  "/android",
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:34:36
5
+ * @LastEditTime: 2022-05-31 18:43:44
6
6
  * @FilePath: /@aks-dev/easyui/screen/px2dp.ts
7
7
  */
8
8
  import { Dimensions, Platform, StatusBar } from 'react-native';
@@ -45,11 +45,7 @@ export const statusBarHeight = (() => {
45
45
 
46
46
 
47
47
 
48
- export let navigationBarHeight = (() => {
49
- if (isAndroid) return statusBarHeight
50
- if (isiPhoneX) return 44
51
- return 24
52
- })()
48
+ export let navigationBarHeight = 44
53
49
 
54
50
 
55
51
 
File without changes