@hxa-rn/react-native-share-menu 6.0.0 → 6.0.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 (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -0
  3. package/package.json +61 -60
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2016 Caio Almeida
4
- Modifications Copyright (c) 2026 Harmonyos X-platform Alliance
4
+ Modifications Copyright (c) 2026 HarmonyOS X-platform Alliance
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,4 +1,15 @@
1
1
  # react-native-share-menu — HarmonyOS
2
+
3
+ ## npm 安装
4
+
5
+ ```sh
6
+ npm install @hxa-rn/react-native-share-menu@6.0.1 --save-exact --legacy-peer-deps
7
+ ```
8
+
9
+ 鸿蒙原生模块名为 `@oh-rn/react-native-share-menu`;HAR 位于 `node_modules/@hxa-rn/react-native-share-menu/harmony/share_menu.har`。在宿主 Harmony 工程的 oh-package.json5 中引用此文件。
10
+
11
+ 下方涉及旧适配包名、版本或本地 tgz 的内容为历史记录;当前 npm 接入以本节为准。
12
+
2
13
 
3
14
  - 适配包:`@oh-rn/react-native-share-menu@6.0.0-ohos.1`,MIT。
4
15
  - 上游:`react-native-share-menu` v6.0.0,commit `05e64678c8b6afbb31e81f8cfdd2c46177920f8d`。
package/package.json CHANGED
@@ -1,60 +1,61 @@
1
- {
2
- "name": "@hxa-rn/react-native-share-menu",
3
- "version": "6.0.0",
4
- "description": "HarmonyOS adaptation of react-native-share-menu v6.0.0",
5
- "main": "src/index.harmony.js",
6
- "react-native": "src/index.harmony.js",
7
- "license": "MIT",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/Expensify/react-native-share-menu.git"
11
- },
12
- "files": [
13
- "src/",
14
- "harmony/",
15
- "README.md",
16
- "LICENSE"
17
- ],
18
- "scripts": {
19
- "codegen-lib": "react-native codegen-harmony --cpp-output-path ./harmony/share_menu/src/main/cpp/generated --ets-output-path ./harmony/share_menu/src/main/ets/generated"
20
- },
21
- "peerDependencies": {
22
- "react-native": ">=0.72"
23
- },
24
- "overrides": {
25
- "uglify-es": {
26
- "commander": "2.14.1"
27
- }
28
- },
29
- "devDependencies": {
30
- "react": "18.2.0",
31
- "react-native": "0.72.5",
32
- "@babel/runtime": "^7.29.7",
33
- "@rnoh/react-native-harmony-cli": "file:./tools/rnoh-react-native-harmony-cli-0.0.40.tgz",
34
- "@react-native/metro-config": "0.72.11",
35
- "colors": "^1.4.0",
36
- "metro-react-native-babel-preset": "0.76.8",
37
- "typescript": "^5.0.4"
38
- },
39
- "harmony": {
40
- "alias": "react-native-share-menu",
41
- "autolinking": {
42
- "cmakeLibraryTargetName": "share_menu",
43
- "ohPackageName": "@oh-rn/react-native-share-menu",
44
- "etsPackageClassName": "ShareMenuPackage",
45
- "cppPackageClassName": "ShareMenuPackage"
46
- },
47
- "codegenConfig": [
48
- {
49
- "version": 1,
50
- "specPaths": [
51
- "./src/NativeShareMenu.ts"
52
- ]
53
- }
54
- ]
55
- },
56
- "publishConfig": {
57
- "access": "public",
58
- "registry": "https://registry.npmjs.org/"
59
- }
60
- }
1
+ {
2
+ "name": "@hxa-rn/react-native-share-menu",
3
+ "version": "6.0.1",
4
+ "description": "HarmonyOS adaptation of react-native-share-menu v6.0.0",
5
+ "main": "src/index.harmony.js",
6
+ "react-native": "src/index.harmony.js",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://gitcode.com/hxa-rn/react-native-share-menu.git"
11
+ },
12
+ "homepage": "https://gitcode.com/hxa-rn/react-native-share-menu",
13
+ "files": [
14
+ "src/",
15
+ "harmony/",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "scripts": {
20
+ "codegen-lib": "react-native codegen-harmony --cpp-output-path ./harmony/share_menu/src/main/cpp/generated --ets-output-path ./harmony/share_menu/src/main/ets/generated"
21
+ },
22
+ "peerDependencies": {
23
+ "react-native": ">=0.72"
24
+ },
25
+ "overrides": {
26
+ "uglify-es": {
27
+ "commander": "2.14.1"
28
+ }
29
+ },
30
+ "devDependencies": {
31
+ "react": "18.2.0",
32
+ "react-native": "0.72.5",
33
+ "@babel/runtime": "^7.29.7",
34
+ "@rnoh/react-native-harmony-cli": "file:./tools/rnoh-react-native-harmony-cli-0.0.40.tgz",
35
+ "@react-native/metro-config": "0.72.11",
36
+ "colors": "^1.4.0",
37
+ "metro-react-native-babel-preset": "0.76.8",
38
+ "typescript": "^5.0.4"
39
+ },
40
+ "harmony": {
41
+ "alias": "react-native-share-menu",
42
+ "autolinking": {
43
+ "cmakeLibraryTargetName": "share_menu",
44
+ "ohPackageName": "@oh-rn/react-native-share-menu",
45
+ "etsPackageClassName": "ShareMenuPackage",
46
+ "cppPackageClassName": "ShareMenuPackage"
47
+ },
48
+ "codegenConfig": [
49
+ {
50
+ "version": 1,
51
+ "specPaths": [
52
+ "./src/NativeShareMenu.ts"
53
+ ]
54
+ }
55
+ ]
56
+ },
57
+ "publishConfig": {
58
+ "access": "public",
59
+ "registry": "https://registry.npmjs.org/"
60
+ }
61
+ }