From a370e026769e9faca429c0b32b12de6b4253a2d9 Mon Sep 17 00:00:00 2001 From: likang Date: Fri, 5 Jan 2024 18:21:24 +0800 Subject: [PATCH 1/3] =?UTF-8?q?[Issues:=20#I8TZOU]=20=E6=9B=B4=E6=96=B0asy?= =?UTF-8?q?nc-storage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/async-storage.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/zh-cn/async-storage.md b/zh-cn/async-storage.md index d6933677..b49029be 100644 --- a/zh-cn/async-storage.md +++ b/zh-cn/async-storage.md @@ -1,4 +1,4 @@ -> 模板版本:v0.0.1 +> 模板版本:v0.1.2

@react-native-async-storage/async-storage

@@ -12,16 +12,9 @@

-## 安装与使用 - -> [!tip] 目前部分 React-Native-OpenHarmony(RNOH) 三方库的 npm 包部署在私仓,需要通过 github token 来获取访问权限。 +> [!tip] [Github 地址](https://github.com/react-native-oh-library/async-storage) -在与 `package.json` 文件相同的目录中,创建或编辑 `.npmrc` 文件以包含指定 GitHub Packages URL 和托管包的命名空间的行。 将 TOKEN 替换为 RNOH 三方库指定的 token。 - -```bash -@react-native-oh-library:registry=https://npm.pkg.github.com -//npm.pkg.github.com/:_authToken=TOKEN -``` +## 安装与使用 进入到工程目录并输入以下命令: @@ -204,7 +197,11 @@ ohpm install ## API -| 名称 | 说明 | 类型 | 是否必填 | 平台 | 鸿蒙支持 | +> [!tip] "Platform"列表示该属性在原三方库上支持的平台。 + +> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。 + +| Name | Description | Type | Required | Platform | HarmonyOS Support | | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ---- | -------- | | `getItem` | Gets a string value for given key. This function can either return a string value for existing key or return null otherwise. | function | No | All | yes | | `setItem` | Sets a string value for given key. This operation can either modify an existing entry, if it did exist for given key, or add new one otherwise. | function | No | All | yes | -- Gitee From 205f26d8dcb27bb70ccfaf926195e6d82b4b1284 Mon Sep 17 00:00:00 2001 From: likang Date: Fri, 5 Jan 2024 18:25:52 +0800 Subject: [PATCH 2/3] =?UTF-8?q?[Issues:=20#I8TZOU]=20async-storage?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/async-storage.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zh-cn/async-storage.md b/zh-cn/async-storage.md index b49029be..3b4c6e13 100644 --- a/zh-cn/async-storage.md +++ b/zh-cn/async-storage.md @@ -12,7 +12,7 @@

-> [!tip] [Github 地址](https://github.com/react-native-oh-library/async-storage) +> [!tip] [Github 地址](https://github.com/react-native-oh-library/async-storage/releases) ## 安装与使用 @@ -20,6 +20,8 @@ +**正在 npm 发布中,当前请先从仓库[Release](https://github.com/react-native-oh-library/datetimepicker/releases)中获取库 tgz,通过使用本地依赖来安装本库。** + #### **yarn** ```bash -- Gitee From 734dd81e4607d95174d7d8535b5e1fe0d8a93047 Mon Sep 17 00:00:00 2001 From: likang Date: Fri, 5 Jan 2024 18:27:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?[Issues:=20#I8TZOU]=20=E6=9B=B4=E6=96=B0asy?= =?UTF-8?q?nc-storage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/async-storage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/async-storage.md b/zh-cn/async-storage.md index 3b4c6e13..08f4c0bd 100644 --- a/zh-cn/async-storage.md +++ b/zh-cn/async-storage.md @@ -20,7 +20,7 @@ -**正在 npm 发布中,当前请先从仓库[Release](https://github.com/react-native-oh-library/datetimepicker/releases)中获取库 tgz,通过使用本地依赖来安装本库。** +**正在 npm 发布中,当前请先从仓库[Release](https://github.com/react-native-oh-library/async-storage/releases)中获取库 tgz,通过使用本地依赖来安装本库。** #### **yarn** -- Gitee