Skip to content

Commit cd683fb

Browse files
Xiiyypanyinan
andauthored
fix:修改冗余代码 (#7)
Co-authored-by: panyinan <panyinan2@h-partners.com>
1 parent 29911dd commit cd683fb

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

harmony/shared_element.har

-1.15 KB
Binary file not shown.

harmony/shared_element/BuildProfile.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Use these variables when you tailor your ArkTS code. They must be of the const type.
33
*/
4-
export const HAR_VERSION = '0.8.9-0.0.2';
4+
export const HAR_VERSION = '0.8.9-0.0.3';
55
export const BUILD_MODE_NAME = 'debug';
66
export const DEBUG = true;
77
export const TARGET_NAME = 'default';

harmony/shared_element/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-oh-tpl/react-native-shared-element",
3-
"version": "0.8.9-0.0.2",
3+
"version": "0.8.9-0.0.3",
44
"description": "",
55
"main": "index.ets",
66
"author": "",

harmony/shared_element/src/main/cpp/view/RNSharedElementDrawable.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ RNSharedElementDrawable::RNSharedElementDrawable()
3737
};
3838
eventReceiver = [](ArkUI_NodeCustomEvent *event) {
3939
int32_t tagId = OH_ArkUI_NodeCustomEvent_GetEventTargetId(event);
40-
if (tagId == 77 || tagId == 89 || tagId == 90) {
41-
auto *userData = reinterpret_cast<UserCallback *>(OH_ArkUI_NodeCustomEvent_GetUserData(event));
42-
if (userData != nullptr && userData->callback != nullptr) {
43-
userData->callback(event);
44-
}
45-
}
4640
};
4741
maybeThrow(NativeNodeApi::getInstance()->addNodeCustomEventReceiver(m_nodeHandle, eventReceiver));
4842
maybeThrow(NativeNodeApi::getInstance()->registerNodeCustomEvent(m_nodeHandle, ARKUI_NODE_CUSTOM_EVENT_ON_DRAW, 77,

0 commit comments

Comments
 (0)