@react-native-ohos/react-native-webview 13.15.1-rc.5 → 13.15.1-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"name": "@react-native-ohos/react-native-webview",
|
|
7
7
|
"description": "main cpai architecture",
|
|
8
8
|
"main": "index.ets",
|
|
9
|
-
"version": "13.15.1-rc.
|
|
9
|
+
"version": "13.15.1-rc.6",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@rnoh/react-native-openharmony": "../react_native_openharmony.har"
|
|
12
12
|
}
|
|
@@ -338,6 +338,14 @@ export struct RNCWebView {
|
|
|
338
338
|
return getContext(this).resourceManager.getStringSync(resource)
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
+
onLoadFinished() {
|
|
342
|
+
this.onLoadingFinish()
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
onPageEndExecuteRunInjectedJavaScript(){
|
|
346
|
+
this.runInjectedJavaScript()
|
|
347
|
+
}
|
|
348
|
+
|
|
341
349
|
onPageEnd() {
|
|
342
350
|
this.runInjectedJavaScript()
|
|
343
351
|
this.onLoadingFinish()
|
|
@@ -443,7 +451,8 @@ export struct RNCWebView {
|
|
|
443
451
|
scrollBackward: this.nestedScroll,
|
|
444
452
|
})
|
|
445
453
|
.onLoadStarted(() => this.onPageBegin())
|
|
446
|
-
.onLoadFinished(() => this.
|
|
454
|
+
.onLoadFinished(() => this.onLoadFinished())
|
|
455
|
+
.onPageEnd(() => {this.onPageEndExecuteRunInjectedJavaScript()})
|
|
447
456
|
.onErrorReceive((event: OnErrorReceiveEvent) => this.webViewBaseOperate?.emitLoadingError(event))
|
|
448
457
|
.onHttpErrorReceive((event: OnHttpErrorReceiveEvent) => this.webViewBaseOperate?.emitHttpError(event))
|
|
449
458
|
.onControllerAttached(() => this.controllerAttachedInit())
|
package/harmony/rn_webview.har
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Thibault Malbranche <malbranche.thibault@gmail.com>"
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "13.15.1-rc.
|
|
12
|
+
"version": "13.15.1-rc.6",
|
|
13
13
|
"homepage": "https://gitcode.com/openharmony-sig/rntpc_react-native-webview/tree/br_rnoh0.77#readme",
|
|
14
14
|
"scripts": {
|
|
15
15
|
"macos": "react-native run-macos --scheme WebviewExample --project-path example/macos",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@react-native/eslint-config": "0.73.2",
|
|
49
49
|
"@react-native/metro-config": "0.73.5",
|
|
50
50
|
"@react-native/typescript-config": "0.73.1",
|
|
51
|
+
"@react-native-oh/react-native-harmony-cli": "file:./package/react-native-oh-react-native-harmony-cli-0.77.18.tgz",
|
|
51
52
|
"@rnx-kit/metro-config": "1.3.15",
|
|
52
53
|
"@semantic-release/git": "7.0.16",
|
|
53
54
|
"@types/invariant": "^2.2.30",
|