diff --git a/en/react-native-textinput-maxlength-fixed.md b/en/react-native-textinput-maxlength-fixed.md index 98a5b792b8c9d55a0ad0a4a374a8fa83e7328f3f..a912083e413f675b9f6f430148d5a3c565b02f48 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 26e1dff875e04ef2966b09759ba3ba40288f1c39..0bbdd421513a7aca8255f5e39b300278d888a5d3 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 完善相关功能后该方法会被遗弃,目前首选此方法);