Skip to content
Open
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Binary file modified harmony/skia.har
Binary file not shown.
2 changes: 1 addition & 1 deletion harmony/skia/oh-package.json5
Original file line number Diff line number Diff line change
@@ -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": "",
Expand Down
3 changes: 2 additions & 1 deletion harmony/skia/src/main/cpp/rnskia/plugin_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
12 changes: 6 additions & 6 deletions harmony/skia/src/main/ets/view/SkiaDomView.ets
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down