diff --git a/en/react-native-ohos-community-auto-fill.md b/en/react-native-ohos-community-auto-fill.md index dd03510585110f2e0b401d2543b2bd517af23c92..436dabbf342849606351bd4f2f5fd9d8fcdad5f8 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 08e3256c20b791999e13605f98c98992afbb942b..1cdaa651f75cb63e3bcc9bd86701704fc316c2e7 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,//签发地 } ```