From 356ad7681bfdef60d6e63dbe9203c8c85c917455 Mon Sep 17 00:00:00 2001 From: dingchenjie Date: Mon, 26 Jan 2026 15:29:11 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9Ereact-native-permissi?= =?UTF-8?q?ons=200.82=E6=A1=86=E6=9E=B6=E9=80=82=E9=85=8D=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dingchenjie --- en/react-native-permissions.md | 6 +++++- zh-cn/react-native-permissions.md | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/en/react-native-permissions.md b/en/react-native-permissions.md index 9d629a491..5759c9895 100644 --- a/en/react-native-permissions.md +++ b/en/react-native-permissions.md @@ -23,6 +23,7 @@ Please refer to the Releases page of the third-party library for the correspondi | <= 4.1.2-0.1.7@deprecated | [@react-native-oh-tpl/react-native-permissions Releases(deprecated)](https://github.com/react-native-oh-library/react-native-permissions/releases) | 0.72 | | 4.1.3 | [@react-native-ohos/react-native-permissions Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-permissions/releases) | 0.72 | | 5.3.1 | [@react-native-ohos/react-native-permissions Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-permissions/releases) | 0.77 | +| 5.4.2 | [@react-native-ohos/react-native-permissions Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-permissions/releases) | 0.82 | For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package. @@ -128,8 +129,9 @@ const styles = StyleSheet.create({ | | Is supported autolink | Supported RN Version | |--------------------------------------|-----------------------|----------------------| +| ~5.4.2 | No | 0.82 | | ~5.3.1 | No | 0.77 | -| ~4.1.3 | Yes | 0.72 | +| ~4.1.3 | Yes | 0.72 | | <= 4.1.2-0.1.7@deprecated | No | 0.72 | Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md @@ -282,6 +284,7 @@ Verified in the following versions. 1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; 2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; 3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +4. RNOH: 0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7; ### Applying for and Using a Permission @@ -461,6 +464,7 @@ The permission is granted to the application if the user selects **Always allow* | checkLocationAccuracy | Checks the device location permission. | Function | no | iOS | no (Use **check()** to query permissions.) | | requestLocationAccuracy | Requests the permission to access the device location.| Function | no | iOS | no (Use **request()** to set permissions.) | | openPhotoPicker | Opens the photo picker. | Function | no | iOS | yes (For iOS, the API can be called only when the `PhotoLibrary` permission is `limited`. For HarmonyOS, the API can be directly called without any permission.)| +| canUseFullScreenIntent | Check if the full-screen notification feature is available | Function | no | Android | no ## Known Issues diff --git a/zh-cn/react-native-permissions.md b/zh-cn/react-native-permissions.md index bdbf3e016..506c396e0 100644 --- a/zh-cn/react-native-permissions.md +++ b/zh-cn/react-native-permissions.md @@ -23,6 +23,7 @@ | <= 4.1.2-0.1.7@deprecated | [@react-native-oh-tpl/react-native-permissions Releases(deprecated)](https://github.com/react-native-oh-library/react-native-permissions/releases) | 0.72 | | 4.1.3 | [@react-native-ohos/react-native-permissions Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-permissions/releases) | 0.72 | | 5.3.1 | [@react-native-ohos/react-native-permissions Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-permissions/releases) | 0.77 | +| 5.4.2 | [@react-native-ohos/react-native-permissions Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-permissions/releases) | 0.82 | 对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -126,6 +127,7 @@ const styles = StyleSheet.create({ | | 是否支持autolink | RN框架版本 | |--------------------------------------|-----------------|------------| +| ~5.4.2 | No | 0.82 | | ~5.3.1 | No | 0.77 | | ~4.1.3 | Yes | 0.72 | | <= 4.1.2-0.1.7@deprecated | No | 0.72 | @@ -288,6 +290,8 @@ ohpm install 1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; 2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; 3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +4. RNOH: 0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7; + ### 权限申请使用的工作流程 @@ -467,6 +471,7 @@ ohos.permission.LOCATION_IN_BACKGROUND 允许应用在后台运行时获取设 | checkLocationAccuracy | 检查设备位置权限 | Function | no | iOS | no(使用 check()查询权限) | | requestLocationAccuracy | 请求访问设备位置的权限 | Function | no | iOS | no(使用 request()设置权限) | | openPhotoPicker | 打开图片选择 | Function | no | iOS | yes( iOS 需要在`PhotoLibrary`权限为`limited`才能调用,HarmonyOS不需要任何权限直接调用) | +| canUseFullScreenIntent | 检查全屏通知功能是否可用 | Function | no | Android | no ## 遗留问题 -- Gitee