@aks-dev/easyui 1.0.21 → 1.0.22

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/screen/px2dp.tsx +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "爱科森开发工具包",
5
5
  "main": "./src/index.ts",
6
6
  "typings": "./src/index.d.ts",
package/screen/px2dp.tsx 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-16 17:43:18
5
+ * @LastEditTime: 2022-05-16 17:46:40
6
6
  * @FilePath: /@aks/easyui/screen/px2dp.tsx
7
7
  */
8
8
  import { Dimensions, StatusBar, Platform } from 'react-native';
@@ -38,7 +38,7 @@ export const isiPhoneX = isIos && (deviceHeight > 736)
38
38
 
39
39
  export const statusBarHeight = (() => {
40
40
  if (isAndroid) {
41
- if ((StatusBar.currentHeight || 0) > 20) return 30
41
+ if ((StatusBar.currentHeight || 0) > 20) return 40
42
42
  }
43
43
  if (isiPhoneX) return 44
44
44
  return 20