Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e411c77
feat: 修改为fabric架构
May 18, 2024
5f65e10
Merge pull request #26 from weibalangzi/sig
dream-approaching May 18, 2024
86d16e5
feat: 添加scrollEnabled属性
May 18, 2024
a08a91e
fix: 修复onError事件未触发的问题
May 18, 2024
36e5366
fix: 修复onNavigationStateChange事件触发问题
May 18, 2024
bcb0855
Merge pull request #27 from dream-approaching/dev
dream-approaching May 18, 2024
2f681ad
fix: 修改oh-package.json5版本号,更新har包
May 19, 2024
ead488d
Merge pull request #28 from weibalangzi/sig
xiaolieask May 19, 2024
5daa94a
feat: 修改RNCWebview.ets的props取值方式
May 19, 2024
ca866e3
Merge pull request #29 from dream-approaching/dev
xiaolieask May 19, 2024
854f69e
feat: 优化width和height取值
May 19, 2024
6de7c1a
Merge branch 'dev' of github.com:react-native-oh-library/react-native…
May 19, 2024
01dafa1
Merge pull request #30 from dream-approaching/dev
dream-approaching May 19, 2024
d0ca486
feat: 添加goBack、goForward、reload等功能
May 19, 2024
d6c9282
Merge pull request #31 from weibalangzi/sig
dream-approaching May 19, 2024
8fc3d7b
fix: 适配overScrollMode属性、onHttpError方法等
1808417602 May 19, 2024
f57070e
merge
1808417602 May 19, 2024
28aa706
fit 增加回弹效果
xiaolieask May 19, 2024
c70b302
Merge branch 'dev' of github.com:react-native-oh-library/react-native…
xiaolieask May 19, 2024
86db281
Merge pull request #33 from xiaolieask/dev
xiaolieask May 19, 2024
58b4c41
feat: 修复scrollEnabled初始值问题
May 19, 2024
7196605
feat: 修改header和监听处理
May 19, 2024
42cdc65
Merge branch 'dev' of github.com:react-native-oh-library/react-native…
May 19, 2024
01f2787
Merge pull request #34 from dream-approaching/dev
dream-approaching May 19, 2024
aa23e7c
Merge pull request #32 from 1808417602/dev
dream-approaching May 19, 2024
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/rn_webview.har
Binary file not shown.
7 changes: 1 addition & 6 deletions harmony/rn_webview/hvigorfile.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
import { harTasks } from '@ohos/hvigor-ohos-plugin';

export default {
system: harTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
}
export { harTasks } from '@ohos/hvigor-ohos-plugin';
7 changes: 4 additions & 3 deletions harmony/rn_webview/index.ets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
/**
* MIT License
*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Copyright (C) 2024 Huawei Device Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand All @@ -22,5 +22,6 @@
* SOFTWARE.
*/

export * from './src/main/ets/WebView'
export * from './src/main/ets/RNCWebView'

export * from './ts'
4 changes: 2 additions & 2 deletions harmony/rn_webview/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"name": "@react-native-oh-tpl/react-native-webview",
"description": "main cpai architecture",
"main": "index.ets",
"version": "13.6.3-0.1.4",
"version": "13.10.2-0.0.1",
"dependencies": {
"@rnoh/react-native-openharmony": "file:../react_native_openharmony"
}
}
}
2 changes: 2 additions & 0 deletions harmony/rn_webview/src/main/cpp/WebViewJSIBinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ namespace rnoh {
{
auto object = ViewComponentJSIBinder::createNativeProps(rt);
object.setProperty(rt, "newSource", "object");
object.setProperty(rt, "bounces", "bool");
object.setProperty(rt, "javaScriptEnabled", "bool");
object.setProperty(rt, "injectedJavaScript", "string");
object.setProperty(rt, "messagingEnabled", "bool");
object.setProperty(rt, "showsHorizontalScrollIndicator", "bool");
object.setProperty(rt, "showsVerticalScrollIndicator", "bool");
object.setProperty(rt, "textZoom", "int");
object.setProperty(rt, "cacheEnabled", "bool");
object.setProperty(rt, "dataDetectorTypes", "Array");
object.setProperty(rt, "cacheMode", "string");
object.setProperty(rt, "domStorageEnabled", "bool");
object.setProperty(rt, "scalesPageToFit", "bool");
Expand Down
1 change: 1 addition & 0 deletions harmony/rn_webview/src/main/cpp/WebViewNapiBinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace rnoh {
return objectBuilder.addProperty("newSource", sourceObject.build())
.addProperty("javaScriptEnabled", props->javaScriptEnabled)
.addProperty("injectedJavaScript", props->injectedJavaScript)
.addProperty("bounces", props->bounces)
.addProperty("messagingEnabled", props->messagingEnabled)
.addProperty("showsHorizontalScrollIndicator", props->showsHorizontalScrollIndicator)
.addProperty("showsVerticalScrollIndicator", props->showsVerticalScrollIndicator)
Expand Down
Loading