From 79746d03050a0066fd429fb5a564bff1f268256c Mon Sep 17 00:00:00 2001 From: fan-kuiwei Date: Wed, 19 Mar 2025 11:06:12 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IBUJRZ]:=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-textinput-maxlength-fixed=20=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-textinput-maxlength-fixed.md | 4 ++++ zh-cn/react-native-textinput-maxlength-fixed.md | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/en/react-native-textinput-maxlength-fixed.md b/en/react-native-textinput-maxlength-fixed.md index 98a5b792..a912083e 100644 --- a/en/react-native-textinput-maxlength-fixed.md +++ b/en/react-native-textinput-maxlength-fixed.md @@ -102,6 +102,10 @@ Open the `harmony` directory of the HarmonyOS project in DevEco Studio. ``` ### 2.Introducing Native Code +> [!TIP] 引入原生代码之前请确认IDE版本,5.0.3.810及其之后的版本需要在harmony工程中的hvigor-config.json5文件中新增如下配置以解决路径过长导致的编译报错问题 +> "properties":{ +> "ohos.nativeResolver":false +> } Currently, two methods are available: diff --git a/zh-cn/react-native-textinput-maxlength-fixed.md b/zh-cn/react-native-textinput-maxlength-fixed.md index 26e1dff8..0bbdd421 100644 --- a/zh-cn/react-native-textinput-maxlength-fixed.md +++ b/zh-cn/react-native-textinput-maxlength-fixed.md @@ -102,7 +102,10 @@ const styles = StyleSheet.create({ ``` ### 2.引入原生端代码 - +> [!TIP] 引入原生代码之前请确认IDE版本,5.0.3.810及其之后的版本需要在harmony工程中的hvigor-config.json5文件中新增如下配置以解决路径过长导致的编译报错问题 +> "properties":{ + "ohos.nativeResolver":false +} 目前有两种方法: 1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法); -- Gitee