From 8223dda41d6b2d22196f2225dc9463c757ca1f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cleehom6666=E2=80=9D?= Date: Wed, 19 Feb 2025 09:43:30 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IBN7YU]:=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0fastimage=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 Signed-off-by: “leehom6666” --- en/react-native-fast-image.md | 2 ++ zh-cn/react-native-fast-image.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/en/react-native-fast-image.md b/en/react-native-fast-image.md index 3e1fd15b..afbfef7a 100644 --- a/en/react-native-fast-image.md +++ b/en/react-native-fast-image.md @@ -18,6 +18,8 @@ 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. + 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 47794479..c71813f4 100644 --- a/zh-cn/react-native-fast-image.md +++ b/zh-cn/react-native-fast-image.md @@ -18,6 +18,8 @@ 请到三方库的 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的内存申请。 + 进入到工程目录并输入以下命令: -- Gitee