@unif/react-native-hms-scan 0.5.6 → 0.6.1

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/README.md +2 -2
  2. package/package.json +14 -13
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![License](https://img.shields.io/npm/l/@unif/react-native-hms-scan.svg?color=blue)](LICENSE)
6
6
  [![Docs](https://img.shields.io/badge/docs-unif--design.github.io-orange.svg)](https://unif-design.github.io/react-native-hms-scan/)
7
7
 
8
- 华为 **HMS 统一扫码(HUAWEI Scan Kit)** 的 React Native 封装,面向 RN 0.86.2 新架构(Fabric + TurboModule):成品扫一扫页、headless 自定义扫码 UI、从图片识别条码 / 二维码。
8
+ 华为 **HMS 统一扫码(HUAWEI Scan Kit)** 的 React Native 封装,面向 RN 0.86.3 新架构(Fabric + TurboModule):成品扫一扫页、headless 自定义扫码 UI、从图片识别条码 / 二维码。
9
9
 
10
10
  ## 特性
11
11
 
@@ -81,7 +81,7 @@ headless `<HmsScanView>`(完全自定义 UI)、图片识别 `decodeImage`、权
81
81
 
82
82
  | 平台 | 支持 |
83
83
  | --- | --- |
84
- | React Native | 新架构(Fabric + TurboModule)**必须开启**;在 RN 0.86.2 / React 19.2.3 上开发与验证 |
84
+ | React Native | 新架构(Fabric + TurboModule)**必须开启**;在 RN 0.86.3 / React 19.2.3 上开发与验证 |
85
85
  | Android | ✅ minSdkVersion ≥ 24(Android 7.0) |
86
86
  | iOS | ✅ 官方 CocoaPod `ScanKitFrameWork 1.1.2.305` + 真机 |
87
87
  | iOS Simulator | ❌ 不支持;无硬件逻辑测试使用随包 Jest mock |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unif/react-native-hms-scan",
3
- "version": "0.5.6",
3
+ "version": "0.6.1",
4
4
  "description": "华为 HMS 统一扫码服务 React Native bridge:定制视图扫码 + 图片识别 (Scan SDK-Plus / ScanKitFrameWork,@unif 私有)",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -75,33 +75,34 @@
75
75
  "@babel/core": "^7.25.2",
76
76
  "@commitlint/config-conventional": "^20.5.0",
77
77
  "@eslint/js": "^8.57.1",
78
- "@react-native/babel-preset": "0.86.2",
79
- "@react-native/eslint-config": "0.86.2",
80
- "@react-native/jest-preset": "0.86.2",
81
- "@react-native/metro-config": "0.86.2",
78
+ "@react-native/babel-preset": "0.86.3",
79
+ "@react-native/eslint-config": "0.86.3",
80
+ "@react-native/jest-preset": "0.86.3",
81
+ "@react-native/metro-config": "0.86.3",
82
82
  "@release-it/conventional-changelog": "^11.0.0",
83
- "@sbaiahmed1/react-native-blur": "^4.6.2",
83
+ "@sbaiahmed1/react-native-blur": "6.0.1",
84
84
  "@testing-library/react-native": "^13.3.3",
85
85
  "@types/jest": "^29.5.0",
86
86
  "@types/react": "^19.2.0",
87
87
  "@types/react-test-renderer": "^19",
88
- "@unif/react-native-design": "0.24.0",
88
+ "@unif/react-native-design": "0.30.1",
89
89
  "commitlint": "^20.5.0",
90
90
  "del-cli": "^7.0.0",
91
91
  "eslint": "^8.57.1",
92
92
  "eslint-config-prettier": "^10.1.8",
93
93
  "eslint-plugin-prettier": "^5.5.5",
94
94
  "jest": "^29.7.0",
95
+ "lefthook": "^2.1.4",
95
96
  "prettier": "^3.8.1",
96
97
  "react": "19.2.3",
97
- "react-native": "0.86.2",
98
+ "react-native": "0.86.3",
98
99
  "react-native-builder-bob": "^0.41.0",
99
100
  "react-native-gesture-handler": "^3.1.0",
100
- "react-native-reanimated": "^4.5.3",
101
+ "react-native-reanimated": "^4.6.0",
101
102
  "react-native-reanimated-carousel": "^5.0.0",
102
103
  "react-native-safe-area-context": "^5.7.0",
103
104
  "react-native-svg": "^15.15.5",
104
- "react-native-worklets": "^0.11.3",
105
+ "react-native-worklets": "^0.12.1",
105
106
  "react-test-renderer": "19.2.3",
106
107
  "release-it": "^20.0.1",
107
108
  "turbo": "^2.8.21",
@@ -110,12 +111,12 @@
110
111
  },
111
112
  "peerDependencies": {
112
113
  "@sbaiahmed1/react-native-blur": ">=4",
113
- "@unif/react-native-design": ">=0.8.0",
114
+ "@unif/react-native-design": ">=0.26.0",
114
115
  "react": ">=19.0.0",
115
- "react-native": ">=0.80.0",
116
+ "react-native": ">=0.86.0",
116
117
  "react-native-gesture-handler": ">=2.21.0",
117
118
  "react-native-reanimated": ">=4.0.0",
118
- "react-native-reanimated-carousel": ">=5.0.0-beta.0",
119
+ "react-native-reanimated-carousel": ">=5.0.0 <6.0.0",
119
120
  "react-native-safe-area-context": ">=5.0.0",
120
121
  "react-native-svg": ">=15",
121
122
  "react-native-worklets": "*"