From 2f4b04eb3edd080adaf7a915107b0b14db750ea2 Mon Sep 17 00:00:00 2001 From: songzhf Date: Wed, 10 Dec 2025 11:43:46 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IDC29C]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-ohos-community-auto-fill=E7=9A=84?= =?UTF-8?q?=E4=B8=AD=E8=8B=B1=E6=96=87=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: songzhf --- en/react-native-ohos-community-auto-fill.md | 10 ++++++++-- zh-cn/react-native-ohos-community-auto-fill.md | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/en/react-native-ohos-community-auto-fill.md b/en/react-native-ohos-community-auto-fill.md index dd035105..436dabbf 100644 --- a/en/react-native-ohos-community-auto-fill.md +++ b/en/react-native-ohos-community-auto-fill.md @@ -123,9 +123,9 @@ The following lists the mapping between [textContentType](https://reactnative.cn ```js // The key is the value of textContentType in React Native, // The value is the value of ContentType in HarmonyOS. + +//Explanation: The textContentType configuration item 'name' and ('familyName', 'givenName') cannot be used in the same form at the same time (they can be used simultaneously in the passport information scenario). { - "addressCity": CITY_ADDRESS, // City - "addressState": PROVINCE_ADDRESS, // Province "countryName": COUNTRY_ADDRESS, // Country "fullStreetAddress": FULL_STREET_ADDRESS, // Detailed address "telephoneNumber": PHONE_NUMBER, // Phone number @@ -133,6 +133,12 @@ The following lists the mapping between [textContentType](https://reactnative.cn "password": PASSWORD, // Password "emailAddress": EMAIL_ADDRESS, // Email address "name": PERSON_FULL_NAME, // Full name + "idCardNumber":ID_CARD_NUMBER,//ID card number + "familyName":PERSON_LAST_NAME,//Last name + "givenName":PERSON_FIRST_NAME,//First name + "passportNumber":PASSPORT_NUMBER,//passportNumber + "validity":VALIDITY,//validity + "issueAt":ISSUE_AT,//issueAt } ``` diff --git a/zh-cn/react-native-ohos-community-auto-fill.md b/zh-cn/react-native-ohos-community-auto-fill.md index 08e3256c..1cdaa651 100644 --- a/zh-cn/react-native-ohos-community-auto-fill.md +++ b/zh-cn/react-native-ohos-community-auto-fill.md @@ -120,9 +120,9 @@ React-Native 侧 TextInput 组件接收的 [textContentType](https://reactnative ```js // key 值为 RN 侧 textContentType 值, // value 值为 HarmonyOS 侧 ContentType 值 + +//说明:textContentType配置项name和(familyName,givenName)不能同时在同一个表单中使用(在护照信息场景中可以同时使用)。 { - "addressCity": CITY_ADDRESS, // 市 - "addressState": PROVINCE_ADDRESS, // 省 "countryName": COUNTRY_ADDRESS, // 国家 "fullStreetAddress": FULL_STREET_ADDRESS, // 详细地址 "telephoneNumber": PHONE_NUMBER, // 手机号码 @@ -130,6 +130,12 @@ React-Native 侧 TextInput 组件接收的 [textContentType](https://reactnative "password": PASSWORD, // 密码 "emailAddress": EMAIL_ADDRESS, // 邮箱地址 "name": PERSON_FULL_NAME, // 姓名 + "idCardNumber":ID_CARD_NUMBER,//身份证号 + "familyName":PERSON_LAST_NAME,//姓氏 + "givenName":PERSON_FIRST_NAME,//名字 + "passportNumber":PASSPORT_NUMBER,//护照号 + "validity":VALIDITY,//有效期至 + "issueAt":ISSUE_AT,//签发地 } ``` -- Gitee