@react-native-ohos/react-native-context-menu-view 1.16.1-rc.1 → 1.16.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.
package/README.md CHANGED
@@ -4,9 +4,9 @@ This project is based on [react-native-context-menu-view@1.12.0](https://github.
4
4
 
5
5
  ## Documentation
6
6
 
7
- - [中文](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-context-menu-view.md)
7
+ - [中文](https://gitcode.com/OpenHarmony-RN/usage-docs/blob/master/zh-cn/react-native-context-menu-view.md)
8
8
 
9
- - [English](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-context-menu-view.md)
9
+ - [English](https://gitcode.com/OpenHarmony-RN/usage-docs/blob/master/en/react-native-context-menu-view.md)
10
10
 
11
11
  ## License
12
12
 
@@ -0,0 +1,19 @@
1
+ {
2
+ "meta": {
3
+ "stableOrder": true,
4
+ "enableUnifiedLockfile": false
5
+ },
6
+ "lockfileVersion": 3,
7
+ "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
8
+ "specifiers": {
9
+ "@rnoh/react-native-openharmony@../../../../code/reanimated/tester/harmony/react-native-openharmony-0.72.59.har": "@rnoh/react-native-openharmony@../../../../code/reanimated/tester/harmony/react-native-openharmony-0.72.59.har"
10
+ },
11
+ "packages": {
12
+ "@rnoh/react-native-openharmony@../../../../code/reanimated/tester/harmony/react-native-openharmony-0.72.59.har": {
13
+ "name": "@rnoh/react-native-openharmony",
14
+ "version": "0.72.59",
15
+ "resolved": "../../../../code/reanimated/tester/harmony/react-native-openharmony-0.72.59.har",
16
+ "registryType": "local"
17
+ }
18
+ }
19
+ }
@@ -2,7 +2,7 @@
2
2
  license: 'ISC',
3
3
  types: '',
4
4
  name: "@react-native-ohos/react-native-context-menu-view",
5
- version: '1.16.1-rc.1',
5
+ version: '1.16.1',
6
6
  description: '',
7
7
  main: 'index.ets',
8
8
  type: 'module',
@@ -60,13 +60,11 @@ std::optional<std::string> RTNContextMenuComponentInstance::getTintColorFromDyna
60
60
 
61
61
  void RTNContextMenuComponentInstance::onChildInserted(ComponentInstance::Shared const &childComponentInstance,
62
62
  std::size_t index) {
63
- // 添加子节点,rn框架自带
64
63
  CppComponentInstance::onChildInserted(childComponentInstance, index);
65
64
  m_contextMenuNode.insertChild(childComponentInstance->getLocalRootArkUINode(), index + 1);
66
65
  }
67
66
 
68
67
  void RTNContextMenuComponentInstance::onChildRemoved(ComponentInstance::Shared const &childComponentInstance) {
69
- // 删子节点,rn框架自带
70
68
  CppComponentInstance::onChildRemoved(childComponentInstance);
71
69
  m_contextMenuNode.removeChild(childComponentInstance->getLocalRootArkUINode());
72
70
  };
Binary file
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { requireNativeComponent, View, Platform, StyleSheet, processColor } from "react-native";
3
- import NativeContextMenuHarmony from './src/RTNContextMenuNativeComponent'
3
+ import NativeContextMenuHarmony from './src/RTNContextMenuNativeComponent';
4
4
 
5
5
  const NativeContextMenu = requireNativeComponent("ContextMenu", null);
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-context-menu-view",
3
- "version": "1.16.1-rc.1",
3
+ "version": "1.16.1",
4
4
  "description": "Use native context menu views from React Native",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -10,6 +10,7 @@
10
10
  "ios",
11
11
  "harmony",
12
12
  "react-native-context-menu-view.podspec",
13
+ "!harmony/context_menu/build",
13
14
  "!android/build",
14
15
  "!ios/build",
15
16
  "!**/__tests__",
@@ -22,12 +23,12 @@
22
23
  "android",
23
24
  "harmony"
24
25
  ],
25
- "repository": "https://github.com/react-native-oh-library/react-native-context-menu-view",
26
+ "repository": "https://gitcode.com/OpenHarmony-RN/rntpc_react-native-context-menu-view",
26
27
  "license": "MIT",
27
28
  "bugs": {
28
- "url": "https://github.com/react-native-oh-library/react-native-context-menu-view/issues"
29
+ "url": "https://gitcode.com/OpenHarmony-RN/rntpc_react-native-context-menu-view/issues"
29
30
  },
30
- "homepage": "https://github.com/react-native-oh-library/react-native-context-menu-view#readme",
31
+ "homepage": "https://gitcode.com/OpenHarmony-RN/rntpc_react-native-context-menu-view#readme",
31
32
  "devDependencies": {},
32
33
  "peerDependencies": {
33
34
  "react": "*",
@@ -1,26 +0,0 @@
1
- require "json"
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = "react-native-context-menu-view"
7
- s.version = package["version"]
8
- s.summary = package["description"]
9
- s.description = <<-DESC
10
- react-native-context-menu-view
11
- DESC
12
- s.homepage = "https://github.com/mpiannucci/react-native-context-menu-view"
13
- s.license = "MIT"
14
- # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
15
- s.authors = { "Matthew Iannucci" => "mpiannucci@gmail.com" }
16
- s.platforms = { :ios => "9.0" }
17
- s.source = { :git => "https://github.com/mpiannucci/react-native-context-menu-view.git", :tag => "#{s.version}" }
18
-
19
- s.source_files = "ios/**/*.{h,m,swift}"
20
- s.requires_arc = true
21
-
22
- s.dependency "React"
23
- # ...
24
- # s.dependency "..."
25
- end
26
-