diff --git a/en/react-native-community-push-notification-ios.md b/en/react-native-community-push-notification-ios.md index 4a054769fcfb0ea600fec6212fbad017623e94e3..083283f7155fca0a1a05b8a434bd9cab3711ca6c 100644 --- a/en/react-native-community-push-notification-ios.md +++ b/en/react-native-community-push-notification-ios.md @@ -298,7 +298,7 @@ Then build and run the code. Check the release version information in the release address of the third-party library: [@react-native-ohos/push-notification-ios Releases](https://gitee.com/openharmony-sig/rntpc_ios/releases) -## 4. APIs +## 4. API > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. @@ -350,8 +350,8 @@ _NotificationRequest:_ ## 6. Known Issues -- [ ] HarmonyOS 的 NotificationManager 的规格和 IOS 不一致,其 NotificationRequest 所含参数,在 HarmonyOS 上部分没有适配对应参数,问题: [issue#1](https://github.com/react-native-oh-library/react-native-push-notification-ios/issues/4) -- [ ] 原库部分接口在 HarmonyOS 中没有对应接口处理相关逻辑,问题: [issue#2](https://github.com/react-native-oh-library/react-native-push-notification-ios/issues/3) +- [ ] The **NotificationManager** specifications of HarmonyOS are different from those of iOS. Some parameters contained in **NotificationRequest** are not adapted to HarmonyOS: [issue#1](https://github.com/react-native-oh-library/react-native-push-notification-ios/issues/4). +- [ ] Some APIs in the source library do not have the corresponding API processing logic on HarmonyOS: [issue#2](https://github.com/react-native-oh-library/react-native-push-notification-ios/issues/3). ## 7. Others diff --git a/en/react-native-permissions.md b/en/react-native-permissions.md index c0deac7ee6de5512d2767f7e4592b0a5f1a59c56..8cfed7fdad4a25d1df0279381f556bdd7b12a35b 100644 --- a/en/react-native-permissions.md +++ b/en/react-native-permissions.md @@ -40,7 +40,7 @@ yarn add @react-native-oh-tpl/react-native-permissions The following code shows the basic use scenario of the repository: -> [!WARNING] 在使用import...from "react-native-permissions" 导入时因为原库没有抛出关于HarmonyOS有关字段,在使用PERMISSIONS.HARMONY.ACCESS_BLUETOOTH编辑器会报ts类型错误没有HARMONY字段(使用可以正常编译运行),所以想要使用PERMISSIONS.HARMONY.ACCESS_BLUETOOTH,可以使用 import...from "@react-native-oh-tpl/react-native-permissions" +> [!WARNING] When using **import ... from "react-native-permissions"**, a TypeScript type error occurs because the original library does not include the HarmonyOS fields. Specifically, when trying to use **PERMISSIONS.HARMONY.ACCESS_BLUETOOTH**, TypeScript throws an error indicating that the **HARMONY** field is missing. (However, the code will still compile and run correctly.) To resolve this issue and use **PERMISSIONS.HARMONY.ACCESS_BLUETOOTH**, you should instead use **import...from "@react-native-oh-tpl/react-native-permissions"**. ```js import { ScrollView, StyleSheet, View, Text, Button } from "react-native"; @@ -65,21 +65,21 @@ export function PermissionsExample() { return (