diff --git a/zh-cn/react-native-fast-image.md b/zh-cn/react-native-fast-image.md index e1c9b2bd5db8eb08c72429a3e893903cebf58f21..b5df1ed26b30c20478cac294658030f1fb92786b 100644 --- a/zh-cn/react-native-fast-image.md +++ b/zh-cn/react-native-fast-image.md @@ -185,6 +185,23 @@ function CustomComponentBuilder(ctx: ComponentBuilderContext) { ... ``` +### 在 ArkTs 侧引入 FastImagePackage + +打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: + +```diff +import type {RNPackageContext, RNPackage} from 'rnoh/ts'; +import {SamplePackage} from 'rnoh-sample-package/ts'; ++ import { FastImagePackage } from 'rnoh-fast-image/ts'; + +export function createRNPackages(ctx: RNPackageContext): RNPackage[] { + return [ + new SamplePackage(ctx), ++ new FastImagePackage(ctx) + ]; +} +``` + ### 运行 点击右上角的 `sync` 按钮 @@ -231,7 +248,7 @@ ohpm install ## 遗留问题 -- [ ] 部分涉及使用缓存能力的接口,未适配 +- [ ] 部分涉及使用缓存能力的接口[issue#8](https://github.com/react-native-oh-library/react-native-fast-image/issues/8) ## 其他 diff --git a/zh-cn/react-native-webview.md b/zh-cn/react-native-webview.md index 081d41dcb5c8e7b535b9c42160f6decd7b5f1684..ecbcfe7ad9d0be97fe2c8c1eaa5c60447ca04cdc 100644 --- a/zh-cn/react-native-webview.md +++ b/zh-cn/react-native-webview.md @@ -223,7 +223,7 @@ ohpm install | `showsVerticalScrollIndicator` | Boolean value that determines whether a vertical scroll indicator is shown in the WebView. | boolean | No | iOS,android,macOS | yes | | `cacheEnabled?` | Sets whether WebView should use browser caching. | boolean | No | iOS,android,macOS | yes | | `cacheMode?` | Overrides the way the cache is used. | string | No | android | yes | -| `textZoom?` | If the user has set a custom font size in the Android system, an undesirable scale of the site interface in WebView occurs. | number | yes | android | yes | +| `textZoom?` | If the user has set a custom font size in the Android system, an undesirable scale of the site interface in WebView occurs. | number | No | android | yes | | ` injectJavaScript?: (script: string) => void` | Executes the JavaScript string. | function | No | iOS,android,macOS | yes | | ` onLoadEnd?: (event) => void` | Function that is invoked when the WebView load succeeds or fails used. | function | No | All | yes | | ` onMessage?: (event) => void` | Function that is invoked when the webview calls window.ReactNativeWebView.postMessage. | function | No | iOS,android,macOS | yes |