diff --git a/en/react-native-touch-id.md b/en/react-native-touch-id.md index 8693275117bf575fd70d08978f127fc94e9a96de..b1549cef187943fada8e2a2f757f88db1832f228 100644 --- a/en/react-native-touch-id.md +++ b/en/react-native-touch-id.md @@ -83,6 +83,24 @@ const App = () => { }) }} > + + ) }; @@ -304,6 +322,7 @@ In your `module.json5` | Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- | ------------------ | | unifiedErrors| Returns unified error messages | boolean | no | ios/android | yes | + | useFaceID | Whether to use faceID. Default is false, fingerprint will be used. If set to true, faceID will be used. | boolean | no | no | yes | ## Properties > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. @@ -335,6 +354,8 @@ In your `module.json5` ## Others +- ios/android does not support the `useFaceID` parameter, which is only applicable to the HarmonyOS platform and is used to control whether the facial recognition feature is enabled. + ## License This project is licensed under [The MIT License (MIT)](https://github.com/naoufal/react-native-touch-id?tab=readme-ov-file#license). diff --git a/zh-cn/react-native-touch-id.md b/zh-cn/react-native-touch-id.md index 9574db1e575e19af59496cac9a7f269c6e9db931..33617d8eebb937b1d54ab20ab5023843ae1f54b2 100644 --- a/zh-cn/react-native-touch-id.md +++ b/zh-cn/react-native-touch-id.md @@ -81,6 +81,24 @@ const App = () => { }) }} > + + ) }; @@ -305,6 +323,7 @@ In your `module.json5` | Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- | ------------------ | | unifiedErrors| 返回统一的错误信息 |boolean| no | ios/andriod | yes | + | useFaceID | 是否使用人脸识别。默认设置为false,表示使用指纹识别,如果设置为true,表示使用人脸识别。 |boolean| no | no | yes | ## 属性 > [!TIP] "Platform"列表示该属性在原三方库上支持的平台。 @@ -336,6 +355,8 @@ In your `module.json5` ## 其他 +- ios/android不支持`useFaceID`参数,该参数仅用于鸿蒙平台,用于控制是否使用人脸识别功能。 + ## 开源协议 本项目基于 [The MIT License (MIT)](https://github.com/naoufal/react-native-touch-id?tab=readme-ov-file#license) ,请自由地享受和参与开源。