diff --git a/CHANGELOG.md b/CHANGELOG.md index c11a6c99ee..157a958d45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog ## 鸿蒙化Log +### v1.4.1-rc.1 + +- pre-release version 1.4.1-rc.1 + ### v1.4.0-rc.1 - pre-release version 1.4.0-rc.1 diff --git a/example/package.json b/example/package.json index de63928763..e378029f12 100644 --- a/example/package.json +++ b/example/package.json @@ -8,7 +8,7 @@ "start": "hdc rport tcp:8081 tcp:8081 && react-native start", "codegen": "react-native codegen-harmony --rnoh-module-path ./harmony/entry/oh_modules/@rnoh/react-native-openharmony", "pack:pkg": "cd ../ && npm pack && cd ./example", - "install:pkg": "npm uninstall @react-native-ohos/react-native-skia && npm run pack:pkg && npm i @react-native-ohos/react-native-skia@file:../react-native-ohos-react-native-skia-1.4.0-rc.1.tgz", + "install:pkg": "npm uninstall @react-native-ohos/react-native-skia && npm run pack:pkg && npm i @react-native-ohos/react-native-skia@file:../react-native-ohos-react-native-skia-1.4.1-rc.1.tgz", "dev": "npm run codegen && react-native bundle-harmony --dev --minify=false", "prod": "npm run codegen && react-native bundle-harmony --dev=false --minify=true", "postinstall": "node ./scripts/create-build-profile", @@ -17,7 +17,7 @@ "dependencies": { "@gorhom/portal": "^1.0.14", "@react-native-ohos/react-native-reanimated": "file:../packages/react-native-ohos-react-native-reanimated-3.18.0.tgz", - "@react-native-ohos/react-native-skia": "file:../react-native-ohos-react-native-skia-1.4.0-rc.1.tgz", + "@react-native-ohos/react-native-skia": "file:../react-native-ohos-react-native-skia-1.4.1-rc.1.tgz", "@rnoh/testerino": "file:../packages/rnoh-testerino-0.0.12.tgz", "react": "18.3.1", "react-native": "0.77.1", diff --git a/harmony/skia.har b/harmony/skia.har index ddb01f0998..35e69ff03a 100644 Binary files a/harmony/skia.har and b/harmony/skia.har differ diff --git a/harmony/skia/oh-package.json5 b/harmony/skia/oh-package.json5 index 14a3926500..3b6e308478 100644 --- a/harmony/skia/oh-package.json5 +++ b/harmony/skia/oh-package.json5 @@ -1,6 +1,6 @@ { "name": "@react-native-ohos/react-native-skia", - "version": "1.4.0", + "version": "1.4.1-rc.1", "description": "Please describe the basic information.", "main": "index.ets", "author": "", diff --git a/harmony/skia/src/main/cpp/rnskia/plugin_render.cpp b/harmony/skia/src/main/cpp/rnskia/plugin_render.cpp index 443ce8f1d9..1e06324541 100644 --- a/harmony/skia/src/main/cpp/rnskia/plugin_render.cpp +++ b/harmony/skia/src/main/cpp/rnskia/plugin_render.cpp @@ -251,7 +251,8 @@ void PluginRender::OnSurfaceChanged(OH_NativeXComponent *component, void *window uint64_t height; OH_NativeXComponent_GetXComponentSize(component, window, &width, &height); if (render != nullptr) { - render->_harmonyView->surfaceSizeChanged(width, height); + render->m_width = width; + render->m_height = height; } } diff --git a/harmony/skia/src/main/ets/view/SkiaDomView.ets b/harmony/skia/src/main/ets/view/SkiaDomView.ets index 5f4fb6b16f..696c23f700 100644 --- a/harmony/skia/src/main/ets/view/SkiaDomView.ets +++ b/harmony/skia/src/main/ets/view/SkiaDomView.ets @@ -15,12 +15,12 @@ const X_COMPONENT_ID = 'SkiaDomView'; export struct SkiaDomView { private xComponentController: XComponentController = new XComponentController(); private xComponentContext: XComponentContext | undefined = undefined; - viewWidth: number = 0; - viewHeight: number = 0; - nativeID: number = 0; - xComponentId: string = ''; - mode: string = 'default'; - debug: boolean = true; + @Prop viewWidth: number = 0; + @Prop viewHeight: number = 0; + @Prop nativeID: number = 0; + @Prop xComponentId: string = ''; + @Prop mode: string = 'default'; + @Prop debug: boolean = true; aboutToAppear(): void { this.xComponentId = X_COMPONENT_ID + '_' + this.nativeID; diff --git a/package.json b/package.json index 5b3e9613e5..bc296b64b9 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "setup-skia-web": "./scripts/setup-canvaskit.js" }, "title": "React Native Skia", - "version": "1.4.0", + "version": "1.4.0-rc.1", "description": "High-performance React Native Graphics using Skia", "main": "lib/module/index.js", "react-native": "src/index.ts",