Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:修改冗余代码 #7

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified harmony/shared_element.har
Binary file not shown.
2 changes: 1 addition & 1 deletion harmony/shared_element/BuildProfile.ets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Use these variables when you tailor your ArkTS code. They must be of the const type.
*/
export const HAR_VERSION = '0.8.9-0.0.2';
export const HAR_VERSION = '0.8.9-0.0.3';
export const BUILD_MODE_NAME = 'debug';
export const DEBUG = true;
export const TARGET_NAME = 'default';
Expand Down
2 changes: 1 addition & 1 deletion harmony/shared_element/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-oh-tpl/react-native-shared-element",
"version": "0.8.9-0.0.2",
"version": "0.8.9-0.0.3",
"description": "",
"main": "index.ets",
"author": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ RNSharedElementDrawable::RNSharedElementDrawable()
};
eventReceiver = [](ArkUI_NodeCustomEvent *event) {
int32_t tagId = OH_ArkUI_NodeCustomEvent_GetEventTargetId(event);
if (tagId == 77 || tagId == 89 || tagId == 90) {
auto *userData = reinterpret_cast<UserCallback *>(OH_ArkUI_NodeCustomEvent_GetUserData(event));
if (userData != nullptr && userData->callback != nullptr) {
userData->callback(event);
}
}
};
maybeThrow(NativeNodeApi::getInstance()->addNodeCustomEventReceiver(m_nodeHandle, eventReceiver));
maybeThrow(NativeNodeApi::getInstance()->registerNodeCustomEvent(m_nodeHandle, ARKUI_NODE_CUSTOM_EVENT_ON_DRAW, 77,
Expand Down