From 2ae5fdcea492a0be75dabdc0ed05be29dc3af8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=89=E5=A4=B4=E5=90=9B?= Date: Thu, 4 Dec 2025 10:40:57 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IDALXO]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-mmkv=20=E6=8E=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E8=A1=A8=E6=A0=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小肉头君 --- en/react-native-mmkv.md | 9 +++++---- zh-cn/react-native-mmkv.md | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/en/react-native-mmkv.md b/en/react-native-mmkv.md index 690a6ccd..c99f7f61 100644 --- a/en/react-native-mmkv.md +++ b/en/react-native-mmkv.md @@ -236,13 +236,14 @@ The content of this document has been validated based on the following version: > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. > [!TIP] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android. + | Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- |-------------------| | set | Store key-value pair data | void | no | iOS/Android | yes | -| getBoolean | Obtain the boolean value | boolean / undefined | no | iOS/Android | yes | -| getString | Obtain the string value | string / undefined | no | iOS/Android | yes | -| getNumber | Obtain the number value | number / undefined | no | iOS/Android | yes | -| getBuffer | Obtain the buffer value | ArrayBufferLike / undefined | no | iOS/Android | yes | +| getBoolean | Obtain the boolean value | boolean \| undefined | no | iOS/Android | yes | +| getString | Obtain the string value | string \| undefined | no | iOS/Android | yes | +| getNumber | Obtain the number value | number \|undefined | no | iOS/Android | yes | +| getBuffer | Obtain the buffer value | ArrayBufferLike \| undefined | no | iOS/Android | yes | | contains | Determine whether mmkv contains a certain key value | boolean | no | iOS/Android | yes | | delete | Delete a key value from mmkv | void | no | iOS/Android | yes | | getAllKeys | Get all key values | string[] | no | iOS/Android | yes | diff --git a/zh-cn/react-native-mmkv.md b/zh-cn/react-native-mmkv.md index 5eb3d404..2b86847f 100644 --- a/zh-cn/react-native-mmkv.md +++ b/zh-cn/react-native-mmkv.md @@ -238,13 +238,14 @@ ohpm install > [!TIP] "Platform"列表示该属性在原三方库上支持的平台。 > [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。 + | Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | ----------- | ---- | -------- | -------- |-------------------| | set | 存储键值对数据 | void | no | iOS/Android | yes | -| getBoolean | 获取boolean值 | boolean / undefined | no | iOS/Android | yes | -| getString | 获取string值 | string / undefined | no | iOS/Android | yes | -| getNumber | 获取number值 | number / undefined | no | iOS/Android | yes | -| getBuffer | 获取buffer值 | ArrayBufferLike / undefined | no | iOS/Android | yes | +| getBoolean | 获取boolean值 | boolean \| undefined | no | iOS/Android | yes | +| getString | 获取string值 | string \| undefined | no | iOS/Android | yes | +| getNumber | 获取number值 | number \| undefined | no | iOS/Android | yes | +| getBuffer | 获取buffer值 | ArrayBufferLike \| undefined | no | iOS/Android | yes | | contains | 判断mmkv是否包含某个key值 | boolean | no | iOS/Android | yes | | delete | mmkv删除某个key值 | void | no | iOS/Android | yes | | getAllKeys | 获取所有key值 | string[] | no | iOS/Android | yes | -- Gitee