From 491a757e887b454ee2c5c32cb4c3e1c6ce0d9584 Mon Sep 17 00:00:00 2001 From: KrrI <lvzhiping2@h-partners.com> Date: Mon, 31 Mar 2025 10:43:33 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IBXGYT]:=20@ant-design/reac?= =?UTF-8?q?t-native=E7=9A=84=E5=9B=BA=E5=AE=9A=E7=89=88=E6=9C=AC=E6=8C=87?= =?UTF-8?q?=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: KrrI <lvzhiping2@h-partners.com> --- en/ant-design-react-native.md | 4 ++++ zh-cn/ant-design-react-native.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/en/ant-design-react-native.md b/en/ant-design-react-native.md index 3c6e48fc..124e0a77 100644 --- a/en/ant-design-react-native.md +++ b/en/ant-design-react-native.md @@ -32,6 +32,10 @@ npm install @ant-design/react-native@5.2.2 yarn add @ant-design/react-native@5.2.2 ``` +> [!TIP] The library specifies that in version 5.2.2, the corresponding dependency ^ in package.json needs to be removed after the dependency installation command is executed +> +> "@ant-design/react-native": "^5.2.2" 改为 "@ant-design/react-native": "5.2.2" + > [!WARNING] @bang88/react-native-ultimate-listview 这个依赖库还没鸿蒙化,会影响到里面的一个 ListView 组件,如果想暂时解决掉这个报错的话,可以在 node_modules\@bang88\react-native-ultimate-listview\src 目录下添加一个 refreshableScrollView.js 文件。 ## 链接字体图标 diff --git a/zh-cn/ant-design-react-native.md b/zh-cn/ant-design-react-native.md index d4ea8614..0469f387 100644 --- a/zh-cn/ant-design-react-native.md +++ b/zh-cn/ant-design-react-native.md @@ -34,6 +34,11 @@ yarn add @ant-design/react-native@5.2.2 > [!TIP] 本库还依赖了[@react-native-oh-tpl/slider](/zh-cn/react-native-community-slider.md)、[@react-native-oh-tpl/react-native-gesture-handler](/zh-cn/react-native-gesture-handler.md)、[@react-native-oh-tpl/react-native-modal-popover](/zh-cn/react-native-modal-popover.md)、[@react-native-oh-tpl/react-native-reanimated](/zh-cn/react-native-reanimated.md)和[react-native-community/segmented-control](/zh-cn/react-native-community-segmented-control.md) +> [!TIP] 本库指定5.2.2版本,在执行完依赖安装命令后需要去除掉package.json中对应依赖项中的^ +> +> "@ant-design/react-native": "^5.2.2" 改为 "@ant-design/react-native": "5.2.2" + + > **Warning:** > @bang88/react-native-ultimate-listview 这个依赖库还没鸿蒙化,会影响到里面的一个 ListView 组件,如果想暂时解决掉这个报错的话,可以在 node_modules\@bang88\react-native-ultimate-listview\src 目录下添加一个 refreshableScrollView.js 文件。 -- Gitee