From be3b0f8d91f2a7cfb2f3cbf4901994fd3f6976a7 Mon Sep 17 00:00:00 2001 From: fankw Date: Tue, 25 Feb 2025 16:31:00 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IBOS5T]:=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9fastimage=E5=BA=93=E9=BB=98=E8=AE=A4=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E5=86=85=E5=AD=98=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-fast-image.md | 2 +- zh-cn/react-native-fast-image.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/react-native-fast-image.md b/en/react-native-fast-image.md index afbfef7a..d2c61844 100644 --- a/en/react-native-fast-image.md +++ b/en/react-native-fast-image.md @@ -18,7 +18,7 @@ Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-fast-image Releases](https://github.com/react-native-oh-library/react-native-fast-image/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package. ->[! Warning] The react native fast image component will default to enabling app.setImangeCacheCount to request memory during runtime, which can be disabled by assigning the value IsSetImageRawDataCacheSize. If you want to set other values for app.setImangeCacheCount, you can also add memory requests for system.app in your own business logic. +>[! Warning] The reactive fast image component will enable app.setImangeCacheCount by default when running to request memory. You can use globalThis IsSetImageRawDataCacheSize is closed by assigning a value. After closing, the decoding speed will be affected when there are many pictures. You can improve the decoding speed by customizing the app. setImangeCacheCount memory application in the business logic, [Reference Connection](https://github.com/react-native-oh-library/react-native-fast-image/blob/sig/harmony/fast_image/src/main/ets/FastImagePackage.ts)。 Go to the project directory and execute the following instruction: diff --git a/zh-cn/react-native-fast-image.md b/zh-cn/react-native-fast-image.md index c71813f4..ff69b27e 100644 --- a/zh-cn/react-native-fast-image.md +++ b/zh-cn/react-native-fast-image.md @@ -18,7 +18,7 @@ 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-fast-image Releases](https://github.com/react-native-oh-library/react-native-fast-image/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 -> [!WARNING] react-native-fast-image组件在运行时会默认开启app.setImangeCacheCount 申请内存,可以通过IsSetImageRawDataCacheSize赋值进行关闭,如果想设置app.setImangeCacheCount其他值,也可以在自己的业务逻辑添加system.app的内存申请。 +> [!WARNING] react-native-fast-image组件在运行时会默认开启app.setImangeCacheCount 申请内存,可以通过globalThis.IsSetImageRawDataCacheSize赋值进行关闭,关闭后图片比较多时会影响解码速度,可以通过在业务逻辑自定义app.setImangeCacheCount 内存申请,提高解码速度,[参考连接](https://github.com/react-native-oh-library/react-native-fast-image/blob/sig/harmony/fast_image/src/main/ets/FastImagePackage.ts)。 进入到工程目录并输入以下命令: -- Gitee