diff --git a/zh-cn/model.md b/zh-cn/model.md index a3f73b62bc09083331ec307bfc0720bc5025e860..2e045bdc48d3cd0ec04fabbf38ffca2e871a75de 100644 --- a/zh-cn/model.md +++ b/zh-cn/model.md @@ -2,7 +2,7 @@ > [!ATTENTION] 使用模板时请将后面带有 (删除) 的语句删除。<>内是需要修改的内容。(删除) -> 模板版本:v0.2.2 +> 模板版本:v0.2.2

<原库 npm 包名>

@@ -49,7 +49,7 @@ yarn add @react-native-oh-tpl/<库名>@file:# -下面的代码展示了这个库的基本使用场景: +快速使用: > [!WARNING] 使用时 import 的库名不变。 diff --git a/zh-cn/react-native-fingerprint-scanner.md b/zh-cn/react-native-fingerprint-scanner.md index a4c934a9481f2f56e7ae871240a66b98cc409577..df5170a147645b5d635ba8912b05ae6502cf144c 100644 --- a/zh-cn/react-native-fingerprint-scanner.md +++ b/zh-cn/react-native-fingerprint-scanner.md @@ -1,4 +1,4 @@ -> 模板版本:v0.2.1 +> 模板版本:v0.2.2

react-native-fingerprint-scanner

@@ -85,6 +85,10 @@ export default function App() { } ``` +## 使用 Codegen + +本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/codegen.md)。 + ## Link 目前鸿蒙暂不支持 AutoLink,所以 Link 步骤需要手动配置。 @@ -109,7 +113,7 @@ export default function App() { 1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法); 2. 直接链接源码。 -方法一:通过 har 包引入 +方法一:通过 har 包引入(推荐) > [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。 @@ -118,7 +122,6 @@ export default function App() { ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-fingerprint-scanner": "file:../../node_modules/@react-native-oh-tpl/react-native-fingerprint-scanner/harmony/fingerprint_scanner.har" } ``` @@ -137,6 +140,7 @@ ohpm install ### 在 ArkTs 侧引入 FingerprintScannerPackage + 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: ```diff @@ -220,7 +224,7 @@ ohpm install ## 遗留问题 -- [ ] Harmony的指纹认证只支持title修改,并没有subTitle,description,cancelButton,fallbackEnabled参数, [issue#6](https://github.com/react-native-oh-library/react-native-fingerprint-scanner/issues/6) +- [ ] Harmony的指纹认证只支持title修改,并没有subTitle,description,cancelButton,fallbackEnabled参数, [issue#8](https://github.com/react-native-oh-library/react-native-fingerprint-scanner/issues/8) - [ ] authenticate的参数不支持onAttempt,authenticate的参数onAttempt为回调方法,接口type形式不支持function,所以将onAttempt方法单独抽离出来 [issue#7](https://github.com/react-native-oh-library/react-native-fingerprint-scanner/issues/7)