Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
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
Binary file modified harmony/pdfview.har
Binary file not shown.
4 changes: 2 additions & 2 deletions harmony/pdfview/BuildProfile.ets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default class BuildProfile {
static readonly HAR_VERSION = '6.7.4-0.2.2';
export default class BuildProfile {
static readonly HAR_VERSION = '6.7.4-0.2.7-beta';
static readonly BUILD_MODE_NAME = 'debug';
static readonly DEBUG = true;
static readonly TARGET_NAME = 'default';
Expand Down
Binary file added harmony/pdfview/lib/PDFView.har
Binary file not shown.
5 changes: 3 additions & 2 deletions harmony/pdfview/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@react-native-oh-tpl/react-native-pdf",
"version": "6.7.4-0.2.2",
"version": "6.7.4-0.2.7-beta",
"description": "Please describe the basic information.",
"main": "Index.ets",
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@rnoh/react-native-openharmony": 'file:../react_native_openharmony'
"@rnoh/react-native-openharmony": 'file:../react_native_openharmony',
"PDFView": "file:./lib/PDFView.har"
}
}
12 changes: 12 additions & 0 deletions harmony/pdfview/src/main/cpp/PdfViewJSIBinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ namespace rnoh {
object.setProperty(rt, "singlePage", "boolean");
return object;
}

facebook::jsi::Object createBubblingEventTypes(facebook::jsi::Runtime &rt) override
{
return facebook::jsi::Object(rt);
}

facebook::jsi::Object createDirectEventTypes(facebook::jsi::Runtime &rt) override
{
facebook::jsi::Object events(rt);
events.setProperty(rt, "topChange", createDirectEvent(rt, "onChange"));
return events;
}
};
} // namespace rnoh

Expand Down
Loading