@react-native-ohos/react-native-webview 13.10.5-rc.3 → 13.10.5-rc.4

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.10.5-rc.3",
9
+ "version": "13.10.5-rc.4",
10
10
  "dependencies": {
11
11
  "@rnoh/react-native-openharmony": "0.72.59"
12
12
  }
@@ -371,6 +371,14 @@ export struct RNCWebView {
371
371
  return getContext(this).resourceManager.getStringSync(resource)
372
372
  }
373
373
 
374
+ onLoadFinished() {
375
+ this.onLoadingFinish()
376
+ }
377
+
378
+ onPageEndExecuteRunInjectedJavaScript(){
379
+ this.runInjectedJavaScript()
380
+ }
381
+
374
382
  onPageEnd() {
375
383
  this.runInjectedJavaScript()
376
384
  this.onLoadingFinish()
@@ -476,7 +484,8 @@ export struct RNCWebView {
476
484
  scrollBackward: this.nestedScroll,
477
485
  })
478
486
  .onLoadStarted(() => this.onPageBegin())
479
- .onLoadFinished(() => this.onPageEnd())
487
+ .onLoadFinished(() => this.onLoadFinished())
488
+ .onPageEnd(() => {this.onPageEndExecuteRunInjectedJavaScript()})
480
489
  .onErrorReceive((event: OnErrorReceiveEvent) => this.webViewBaseOperate?.emitLoadingError(event))
481
490
  .onHttpErrorReceive((event: OnHttpErrorReceiveEvent) => this.webViewBaseOperate?.emitHttpError(event))
482
491
  .onControllerAttached(() => this.controllerAttachedInit())
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.10.5-rc.3",
12
+ "version": "13.10.5-rc.4",
13
13
  "homepage": "https://github.com/react-native-oh-library/react-native-webview#readme",
14
14
  "scripts": {
15
15
  "macos": "react-native run-macos --scheme WebviewExample --project-path example/macos",