@react-native-ohos/react-native-context-menu-view 1.16.1-rc.1 → 1.16.1-rc.2

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.
@@ -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-rc.2',
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-rc.2",
4
4
  "description": "Use native context menu views from React Native",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -22,12 +22,12 @@
22
22
  "android",
23
23
  "harmony"
24
24
  ],
25
- "repository": "https://github.com/react-native-oh-library/react-native-context-menu-view",
25
+ "repository": "https://gitcode.com/OpenHarmony-RN/rntpc_react-native-context-menu-view",
26
26
  "license": "MIT",
27
27
  "bugs": {
28
- "url": "https://github.com/react-native-oh-library/react-native-context-menu-view/issues"
28
+ "url": "https://gitcode.com/OpenHarmony-RN/rntpc_react-native-context-menu-view/issues"
29
29
  },
30
- "homepage": "https://github.com/react-native-oh-library/react-native-context-menu-view#readme",
30
+ "homepage": "https://gitcode.com/OpenHarmony-RN/rntpc_react-native-context-menu-view#readme",
31
31
  "devDependencies": {},
32
32
  "peerDependencies": {
33
33
  "react": "*",