From 6b089420cc60e82fa26a5b606797e01ebcc5342b Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:54:38 +0800
Subject: [PATCH 01/40] docs: [Issues: #IBDWTP] gorhom-bottom-sheet.md
---
en/gorhom-bottom-sheet.md | 124 +++++++++++++++++++-------------------
1 file changed, 62 insertions(+), 62 deletions(-)
diff --git a/en/gorhom-bottom-sheet.md b/en/gorhom-bottom-sheet.md
index a9d1a3f7..dc155e4e 100644
--- a/en/gorhom-bottom-sheet.md
+++ b/en/gorhom-bottom-sheet.md
@@ -16,7 +16,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-library/bottom-sheet Releases](https://github.com/react-native-oh-library/react-native-bottom-sheet/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-library/bottom-sheet Releases](https://github.com/react-native-oh-library/react-native-bottom-sheet/releases). 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.
@@ -157,13 +157,13 @@ export default App;
## Use Codegen
-If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/zh-cn/codegen.md).
+If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/en/codegen.md).
## Link
-The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-reanimated、@react-native-oh-tpl/react-native-gesture-handler. If this library is included into your HarmonyOS application, there is no need to include it again; you can skip the steps in this section and use it directly.
+The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-reanimated and @react-native-oh-tpl/react-native-gesture-handler.If this library is included into your HarmonyOS application, there is no need to include it again; you can skip the steps in this section and use it directly.
-If it is not included, follow the guide provided in [@react-native-oh-tpl/react-native-reanimated docs](/zh-cn/react-native-reanimated.md)、[@react-native-oh-tpl/react-native-gesture-handler docs](/zh-cn/react-native-gesture-handler.md) to add it to your project.
+If it is not included, follow the guide provided in [@react-native-oh-tpl/react-native-reanimated docs](/en/react-native-reanimated.md) and [@react-native-oh-tpl/react-native-gesture-handler docs](/en/react-native-gesture-handler.md) to add it to your project.
## Constraints
@@ -171,7 +171,7 @@ If it is not included, follow the guide provided in [@react-native-oh-tpl/react-
This document is verified based on the following versions:
-1.RNOH: 0.72.29; SDK: HarmonyOS-Next-DB1 5.0.0.61; IDE: DevEco Studio 5.0.3.706; ROM: 5.0.0.61;
+1. RNOH: 0.72.29; SDK: HarmonyOS-Next-DB1 5.0.0.61; IDE: DevEco Studio 5.0.3.706; ROM: 5.0.0.61;
## Properties
@@ -183,47 +183,47 @@ This document is verified based on the following versions:
#### Configuration
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | -------- | ------------- | ----------------- |
-| index | Initial snap index. You also could provide -1 to initiate bottom sheet in closed state. | number | No | Android / iOS | Yes |
-| snapPoints | Points for the bottom sheet to snap to, points should be sorted from bottom to top. It accepts array of number, string or mix. | Array\| SharedValue> | Yes | Android / iOS | Yes |
-| overDragResistanceFactor | Defines how violently sheet has to be stopped while over dragging. | number | No | Android / iOS | Yes |
-| detached | Defines whether the bottom sheet is attached to the bottom or no. | boolean | No | Android / iOS | Yes |
-| enableContentPanningGesture | Enable content panning gesture interaction. | boolean | No | Android / iOS | Yes |
-| enableHandlePanningGesture | Enable handle panning gesture interaction. | boolean | No | Android / iOS | Yes |
-| enableOverDrag | Enable over drag for the sheet. | boolean | No | Android / iOS | Yes |
-| enablePanDownToClose | Enable pan down gesture to close the sheet. | boolean | No | Android / iOS | Yes |
-| enableDynamicSizing | Enable dynamic sizing for content view and scrollable content size. | boolean | No | Android / iOS | Yes |
-| animateOnMount | This will initially mount the sheet closed and when it's mounted and calculated the layout, it will snap to initial snap point index. | boolean | No | Android / iOS | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -------- | ------------- | ----------------- |
+| index | Initial snap index. You also could provide -1 to initiate bottom sheet in closed state. | number | No | Android/iOS| Yes |
+| snapPoints | Points for the bottom sheet to snap to, points should be sorted from bottom to top. It accepts array of number, string or mix. | Array\| SharedValue> | Yes | Android/iOS| Yes |
+| overDragResistanceFactor | Defines how violently sheet has to be stopped while over dragging. | number | No | Android/iOS| Yes |
+| detached | Defines whether the bottom sheet is attached to the bottom or no. | boolean | No | Android/iOS| Yes |
+| enableContentPanningGesture | Enable content panning gesture interaction. | boolean | No | Android/iOS| Yes |
+| enableHandlePanningGesture | Enable handle panning gesture interaction. | boolean | No | Android/iOS| Yes |
+| enableOverDrag | Enable over drag for the sheet. | boolean | No | Android/iOS| Yes |
+| enablePanDownToClose | Enable pan down gesture to close the sheet. | boolean | No | Android/iOS| Yes |
+| enableDynamicSizing | Enable dynamic sizing for content view and scrollable content size. | boolean | No | Android/iOS| Yes |
+| animateOnMount | This will initially mount the sheet closed and when it's mounted and calculated the layout, it will snap to initial snap point index. | boolean | No | Android/iOS| Yes |
#### Styles
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| -------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -------------------------- | -------- | ------------- | ----------------- |
-| style | View style to be applied at the sheet container, it also could be an AnimatedStyle. This is helpful to add shadow to the sheet. | ViewStyle \| AnimatedStyle | No | Android / iOS | Yes |
-| backgroundStyle | View style to be applied to the background component. | ViewStyle | No | Android / iOS | Yes |
-| handleStyle | View style to be applied to the handle indicator component. | ViewStyle | No | Android / iOS | Yes |
-| handleIndicatorStyle | View style to be applied to the handle indicator component. | ViewStyle | No | Android / iOS | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| -------------------- | ------------------------------------------------------------ | -------------------------- | -------- | ------------- | ----------------- |
+| style | View style to be applied at the sheet container, it also could be an AnimatedStyle. This is helpful to add shadow to the sheet. | ViewStyle \| AnimatedStyle | No | Android/iOS| Yes |
+| backgroundStyle | View style to be applied to the background component. | ViewStyle | No | Android/iOS| Yes |
+| handleStyle | View style to be applied to the handle indicator component. | ViewStyle | No | Android/iOS| Yes |
+| handleIndicatorStyle | View style to be applied to the handle indicator component. | ViewStyle | No | Android/iOS| Yes |
#### Layout Configuration
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | -------- | ------------- | ----------------- |
-| handleHeight | Handle height helps to calculate the internal container and sheet layouts. If handleComponent is provided, the library internally will calculate its layout, unless handleHeight is provided too. | number | No | Android / iOS | Yes |
-| containerHeight | Container height helps to calculate the internal sheet layouts. If containerHeight not provided, the library internally will calculate it, however this will cause an extra re-rendering. | number | No | Android / iOS | Yes |
-| contentHeight | Content height helps dynamic snap points calculation. | number \| Animated.SharedValue\ | No | Android / iOS | Yes |
-| containerOffset | Container offset helps to accurately detect container offsets. | Animated.SharedValue\ | No | Android / iOS | Yes |
-| topInset | Top inset to be added to the bottom sheet container, usually it comes from @react-navigation/stack hook useHeaderHeight or from react-native-safe-area-context hook useSafeArea. | number | No | Android / iOS | Yes |
-| bottomInset | Bottom inset to be added to the bottom sheet container. | number | No | Android / iOS | Yes |
-| maxDynamicContentSize | Max dynamic content size height to limit the bottom sheet height from exceeding a provided size. | number | No | Android / iOS | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------- | ------------------------------------------------------------ | --------------------------------------- | -------- | ------------- | ----------------- |
+| handleHeight | Handle height helps to calculate the internal container and sheet layouts. If handleComponent is provided, the library internally will calculate its layout, unless handleHeight is provided too. | number | No | Android/iOS| Yes |
+| containerHeight | Container height helps to calculate the internal sheet layouts. If containerHeight not provided, the library internally will calculate it, however this will cause an extra re-rendering. | number | No | Android/iOS| Yes |
+| contentHeight | Content height helps dynamic snap points calculation. | number \| Animated.SharedValue\ | No | Android/iOS| Yes |
+| containerOffset | Container offset helps to accurately detect container offsets. | Animated.SharedValue\ | No | Android/iOS| Yes |
+| topInset | Top inset to be added to the bottom sheet container, usually it comes from @react-navigation/stack hook useHeaderHeight or from react-native-safe-area-context hook useSafeArea. | number | No | Android/iOS| Yes |
+| bottomInset | Bottom inset to be added to the bottom sheet container. | number | No | Android/iOS| Yes |
+| maxDynamicContentSize | Max dynamic content size height to limit the bottom sheet height from exceeding a provided size. | number | No | Android/iOS| Yes |
#### Keyboard Configuration
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | -------- | ------------- | ----------------- |
-| keyboardBehavior | Defines the keyboard appearance behavior;`extend:` extend the sheet to its maximum snap point;`fillParent:` extend the sheet to fill the parent view;`interactive: `offset the sheet by the size of the keyboard. | 'extend' \| 'fillParent' \| 'interactive' | No | Android / iOS | Yes |
-| keyboardBlurBehavior | Defines the keyboard blur behavior;none: do nothing;restore: restore sheet position | 'none' \| 'restore' | No | Android / iOS | Yes |
-| android_keyboardInputMode | Defines keyboard input mode for Android only. | 'adjustPan' \| 'adjustResize' | No | Android | No |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------- | ------------------------------------------------------------ | ----------------------------------------- | -------- | ------------- | ----------------- |
+| keyboardBehavior | Defines the keyboard appearance behavior;`extend:` extend the sheet to its maximum snap point;`fillParent:` extend the sheet to fill the parent view;`interactive: `offset the sheet by the size of the keyboard. | 'extend' \| 'fillParent' \| 'interactive' | No | Android/iOS| Yes |
+| keyboardBlurBehavior | Defines the keyboard blur behavior;none: do nothing;restore: restore sheet position | 'none' \| 'restore' | No | Android/iOS| Yes |
+| android_keyboardInputMode | Defines keyboard input mode for Android only. | 'adjustPan' \| 'adjustResize' | No | Android | No |
#### Animation Configuration
@@ -233,21 +233,21 @@ This document is verified based on the following versions:
#### Gesture Configuration
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ------------------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------- | -------- | ----------- | ----------------- |
-| waitFor | - | React.Ref \| React.Ref[] | No | Android/iOS | Yes |
-| simultaneousHandlers | - | React.Ref \| React.Ref[] | No | Android/iOS | Yes |
-| activeOffsetX | - | number[] | No | Android/iOS | Yes |
-| activeOffsetY | - | number[] | No | Android/iOS | Yes |
-| failOffsetX | - | number[] | No | Android/iOS | Yes |
-| failOffsetY | - | number[] | No | Android/iOS | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------- | ------------------------------------------------------------ | ----------------------------- | -------- | ----------- | ----------------- |
+| waitFor | - | React.Ref \| React.Ref[] | No | Android/iOS | Yes |
+| simultaneousHandlers | - | React.Ref \| React.Ref[] | No | Android/iOS | Yes |
+| activeOffsetX | - | number[] | No | Android/iOS | Yes |
+| activeOffsetY | - | number[] | No | Android/iOS | Yes |
+| failOffsetX | - | number[] | No | Android/iOS | Yes |
+| failOffsetY | - | number[] | No | Android/iOS | Yes |
| gestureEventsHandlersHook | Custom hook to provide pan gesture events handler, which will allow advance and customize handling for pan gesture. | GestureEventsHandlersHookType | No | Android/iOS | Yes |
#### Animated Nodes
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---------------- | ------------------------------------------------------------------------- | ----------------------------- | -------- | ----------- | ----------------- |
-| animatedIndex | Animated value to be used as a callback for the index node internally. | Animated.SharedValue\ | No | Android/iOS | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------- | ------------------------------------------------------------ | ----------------------------- | -------- | ----------- | ----------------- |
+| animatedIndex | Animated value to be used as a callback for the index node internally. | Animated.SharedValue\ | No | Android/iOS | Yes |
| animatedPosition | Animated value to be used as a callback for the position node internally. | Animated.SharedValue\ | No | Android/iOS | Yes |
#### Callbacks
@@ -259,29 +259,29 @@ This document is verified based on the following versions:
#### Components
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------- | -------- | ----------- | ----------------- |
-| handleComponent | Component to be placed as a sheet handle. | React.FC\ | No | Android/iOS | Yes |
-| backdropComponent | Component to be placed as a sheet backdrop, by default is set to null, however the library also provide a default implementation BottomSheetBackdrop of a backdrop but you will need to provide it manually. | React.FC\ | No | Android/iOS | Yes |
-| backgroundComponent | Component to be placed as a sheet background. | React.FC\ | No | Android/iOS | Yes |
-| footerComponent | Component to be placed as a sheet footer. | React.FC\ | No | Android/iOS | Yes |
-| children | Scrollable node or react node to be places as a sheet content. | () => React.ReactNode \| React.ReactNode[] \| React.ReactNode | No | Android/iOS | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -------- | ----------- | ----------------- |
+| handleComponent | Component to be placed as a sheet handle. | React.FC\ | No | Android/iOS | Yes |
+| backdropComponent | Component to be placed as a sheet backdrop, by default is set to null, however the library also provide a default implementation BottomSheetBackdrop of a backdrop but you will need to provide it manually. | React.FC\ | No | Android/iOS | Yes |
+| backgroundComponent | Component to be placed as a sheet background. | React.FC\ | No | Android/iOS | Yes |
+| footerComponent | Component to be placed as a sheet footer. | React.FC\ | No | Android/iOS | Yes |
+| children | Scrollable node or react node to be places as a sheet content. | () => React.ReactNode \| React.ReactNode[] \| React.ReactNode | No | Android/iOS | Yes |
### Bottom Sheet Modal
> [!Tip]Bottom Sheet Modal inherits all [Bottom Sheet props](https://ui.gorhom.dev/components/bottom-sheet/props) except for animateOnMount & containerHeight and also it introduces its own props
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | -------- | ----------- | ----------------- |
-| name | Modal name to help identify the modal for later on. | string | No | Android/iOS | Yes |
-| stackBehavior | Defines the stack behavior when modal mounts. | 'push' \| 'replace' | No | Android/iOS | Yes |
-| enableDismissOnClose | Dismiss the modal when it is closed, this will unmount the modal. | boolean | No | Android/iOS | Yes |
-| onDismiss | Callback when the modal dismissed (unmounted). | function | No | Android/iOS | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| -------------------- | ------------------------------------------------------------ | ------------------- | -------- | ----------- | ----------------- |
+| name | Modal name to help identify the modal for later on. | string | No | Android/iOS | Yes |
+| stackBehavior | Defines the stack behavior when modal mounts. | 'push' \| 'replace' | No | Android/iOS | Yes |
+| enableDismissOnClose | Dismiss the modal when it is closed, this will unmount the modal. | boolean | No | Android/iOS | Yes |
+| onDismiss | Callback when the modal dismissed (unmounted). | function | No | Android/iOS | Yes |
| containerComponent | Component to be placed as a bottom sheet container, this is to place the bottom sheet at the very top layer of your application when using FullWindowOverlay from React Native Screens. | React.ReactNode | No | Android/iOS | Yes |
## Known Issues
-- [ ] BottomSheetFlatList 组件手势滑动存在冲突 [issue#6](https://github.com/react-native-oh-library/react-native-bottom-sheet/issues/6)
+- [ ] BottomSheetFlatList swipe gesture conflicts: [issue#6](https://github.com/react-native-oh-library/react-native-bottom-sheet/issues/6)
## Others
--
Gitee
From f8ac6d6a408d5fb0a5fc669ff13d7630fbcbd5d2 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:54:54 +0800
Subject: [PATCH 02/40] docs: [Issues: #IBDWTP] react-native-animatable.md
---
en/react-native-animatable.md | 46 +++++++++++++++++------------------
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/en/react-native-animatable.md b/en/react-native-animatable.md
index b5fd5444..37afce03 100644
--- a/en/react-native-animatable.md
+++ b/en/react-native-animatable.md
@@ -96,7 +96,7 @@ export default function ExampleView() {
console.log("test onTransitionEnd");
}}
>
- O(∩_∩)O哈哈~
+ O(∩_∩)O
@@ -112,31 +112,31 @@ To use this repository, you need to use the correct React-Native and RNOH versio
This document is verified based on the following versions:
-1. RNOH: 0.72.20; SDK: HarmonyOS NEXT Developer Beta1 B.0.18; IDE: DevEco Studio 5.0.3.200; ROM: 2.0.0.18;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+1. RNOH: 0.72.20; SDK: HarmonyOS NEXT Developer Beta1 B.0.18; IDE: DevEco Studio 5.0.3.200; ROM: 2.0.0.18;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71 (API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
## Properties
-> [!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 |
-| ----------------- | --------------------------------------------------------------------------------------------------------------- | ---------------------- | -------- | -------- | ----------------- |
-| animation | 动画的名称,请参见下面的可用动画 | string/undefined | / | all | yes |
-| duration | 动画将运行的时间(毫秒) | number/undefined | / | all | yes |
-| delay | (可选)延迟动画(毫秒) | number/undefined | / | all | yes |
-| direction | 动画的方向,特别适用于重复动画。有效值: 正常、反向、交替、交替反向 | string/undefined | / | all | yes |
-| easing | 动画的计时功能。有效值: 自定义函数或线性、易进、易出、易入 | string/undefined | / | all | yes |
-| iterationCount | 运行动画的次数,对于循环动画使用无穷大。 | number/undefined | / | all | yes |
-| iterationDelay | 关于动画迭代之间的暂停时间(毫秒) | number/undefined | / | all | yes |
-| transition | 要转换的样式属性,例如不透明度、旋转或字体大小。对多个属性使用数组。 | string/array/undefined | / | all | yes |
-| onAnimationBegin | 启动动画时调用的函数。 | Function/undefined | / | all | yes |
-| onAnimationEnd | 当动画成功完成或取消时调用的函数。函数是用 endState 参数调用的,请参阅 endState.finished 以查看动画是否已完成。 | Function/undefined | / | all | yes |
-| onTransitionBegin | 在样式转换开始时调用的函数。使用属性参数调用函数以区分样式。 | Function/undefined | / | all | yes |
-| onTransitionEnd | 当样式转换成功完成或取消时调用的函数。使用属性参数调用函数以区分样式。 | Function/undefined | / | all | yes |
-| useNativeDriver | 是否使用本机或 JavaScript 动画驱动程序。本机驱动程序可以帮助提高性能,但不能处理所有类型的样式。 | Function/undefined | / | all | yes |
-| isInteraction | 此动画是否在交互管理器上创建“交互控制柄”。 | Boolean | / | all | yes |
+> [!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 |
+| ----------------- | ------------------------------------------------------------ | ---------------------- | -------- | -------- | ----------------- |
+| animation | Animation name. For details, see the following available animations. | string/undefined | / | all | yes |
+| duration | Animation duration, in milliseconds. | number/undefined | / | all | yes |
+| delay | (Optional) Animation delay, in milliseconds. | number/undefined | / | all | yes |
+| direction | Animation direction, particularly suitable for animation repeating. Valid values are **normal**, **reverse**, **alternate**, and **alternate-reverse**.| string/undefined | / | all | yes |
+| easing | Easing function. Valid values are **custom**, **linear**, **ease-in**, **ease-out**, and **ease-in-out**. | string/undefined | / | all | yes |
+| iterationCount | Number of times an animation should be played. Set it to **infinite** for animations to be looped. | number/undefined | / | all | yes |
+| iterationDelay | Time between animation iterations, in milliseconds. | number/undefined | / | all | yes |
+| transition | Style property to be converted, such as opacity, rotation, or font size. Use an array if there are multiple properties to be converted.| string/array/undefined | / | all | yes |
+| onAnimationBegin | Function called when the animation is started. | Function/undefined | / | all | yes |
+| onAnimationEnd | Function called when the animation is successfully completed or canceled. The function is called with the **endState** parameter. Check **endState.finished** to see if the animation is complete.| Function/undefined | / | all | yes |
+| onTransitionBegin | Function called when the style conversion starts. Use property parameters to call functions to distinguish styles.| Function/undefined | / | all | yes |
+| onTransitionEnd | Function called when the style conversion is successfully completed or canceled. Use property parameters to call functions to distinguish styles.| Function/undefined | / | all | yes |
+| useNativeDriver | Whether to use the native or JavaScript animation driver. The native driver can help improve performance, but cannot handle all types of styles.| Function/undefined | / | all | yes |
+| isInteraction | Whether the animation creates an interaction handle on the interaction manager. | Boolean | / | all | yes |
## Others
--
Gitee
From d68a5b3b4a03ee41ec2207a3c17775b3d83e7393 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:55:05 +0800
Subject: [PATCH 03/40] docs: [Issues: #IBDWTP]
react-native-apple-authentication.md
---
en/react-native-apple-authentication.md | 50 ++++++++++++-------------
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/en/react-native-apple-authentication.md b/en/react-native-apple-authentication.md
index c14e9ac7..85ee5581 100644
--- a/en/react-native-apple-authentication.md
+++ b/en/react-native-apple-authentication.md
@@ -16,7 +16,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-library/react-native-apple-authentication Releases](https://github.com/react-native-oh-library/react-native-apple-authentication/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-library/react-native-apple-authentication Releases](https://github.com/react-native-oh-library/react-native-apple-authentication/releases). 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.
Go to the project directory and execute the following instruction:
@@ -36,13 +36,13 @@ npm install @react-native-oh-tpl/react-native-apple-authentication
yarn add @react-native-oh-tpl/react-native-apple-authentication
```
-#### **配置用于 Web 的“通过 Apple 登录”**
+#### **Configuring Sign in with Apple for the Web**
-首先需要进行客户端 id 配置: [Initial Development Environment Setup](https://github.com/invertase/react-native-apple-authentication/blob/main/docs/INITIAL_SETUP.md)
+Configure the client ID: [Initial Development Environment Setup](https://github.com/invertase/react-native-apple-authentication/blob/main/docs/INITIAL_SETUP.md).
-然后需要进行服务设置: [Services setup](https://github.com/invertase/react-native-apple-authentication/blob/main/docs/ANDROID_EXTRA.md)
+Set the service: [Services setup](https://github.com/invertase/react-native-apple-authentication/blob/main/docs/ANDROID_EXTRA.md).
-Apple 官方配置说明: [Configure Sign in with Apple for the web](https://developer.apple.com/help/account/configure-app-capabilities/configure-sign-in-with-apple-for-the-web)
+Configure the official Apple description: [Configure Sign in with Apple for the web](https://developer.apple.com/help/account/configure-app-capabilities/configure-sign-in-with-apple-for-the-web)
@@ -82,7 +82,7 @@ export default AppleAuthenticationDemo;
## Use Codegen
-If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/zh-cn/codegen.md).
+If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/en/codegen.md).
## Link
@@ -129,7 +129,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
### 3. Introducing RNAppleAuthPackage to ArkTS
@@ -166,7 +166,7 @@ Then build and run the code.
To use this repository, you need to use the correct React-Native and RNOH versions. In addition, you need to use DevEco Studio and the ROM on your phone.
-Check the release version information in the release address of the third-party library: [@react-native-oh-library/react-native-apple-authentication Releases](https://github.com/react-native-oh-library/react-native-apple-authentication/releases)。
+Check the release version information in the release address of the third-party library: [@react-native-oh-library/react-native-apple-authentication Releases](https://github.com/react-native-oh-library/react-native-apple-authentication/releases).
## Properties
@@ -174,18 +174,18 @@ Check the release version information in the release address of the third-party
> [!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.
-**AppleButton**: Apple 身份验证按钮组件。
+**AppleButton**: Apple authentication button
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ------------ | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ----------------- |
-| style | 按钮样式 | StyleProp< [ViewStyle](https://gitee.com/link?target=https%3A%2F%2Freactnative.dev%2Fdocs%2Fview%23props) > | no | all | yes |
-| textStyle | 按钮内文字样式 | StyleProp< [TextStyle](https://gitee.com/link?target=https%3A%2F%2Freactnative.dev%2Fdocs%2Ftext%23props) > | no | all | yes |
-| cornerRadius | 按钮边框圆角弧度 | number | no | all | yes |
-| buttonStyle | 按钮样式(预设枚举) | [AppleButtonStyle](https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2Finvertase%2Freact-native-apple-authentication%2Fblob%2Fmain%2Ftypedocs%2Fenums%2FAppleButtonStyle.md) | no | all | yes |
-| buttonType | 按钮类型(预设枚举) | [AppleButtonType](https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2Finvertase%2Freact-native-apple-authentication%2Fblob%2Fmain%2Ftypedocs%2Fenums%2FAppleButtonType.md) | no | all | yes |
-| onPress | 按钮点击事件 | () => void | yes | all | yes |
-| leftView | 按钮内左侧图标 | ReactNode | no | all | yes |
-| buttonText | 按钮内文字内容 | string | no | all | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------ | ------------------ | ------------------------------------------------------------ | -------- | -------- | ----------------- |
+| style | Button style. | StyleProp< [ViewStyle](https://gitee.com/link?target=https%3A%2F%2Freactnative.dev%2Fdocs%2Fview%23props) > | no | all | yes |
+| textStyle | Text style. | StyleProp< [TextStyle](https://gitee.com/link?target=https%3A%2F%2Freactnative.dev%2Fdocs%2Ftext%23props) > | no | all | yes |
+| cornerRadius | Corner radius of the border. | number | no | all | yes |
+| buttonStyle | Button style (preset enumeration).| [AppleButtonStyle](https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2Finvertase%2Freact-native-apple-authentication%2Fblob%2Fmain%2Ftypedocs%2Fenums%2FAppleButtonStyle.md) | no | all | yes |
+| buttonType | Button type (preset enumeration).| [AppleButtonType](https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2Finvertase%2Freact-native-apple-authentication%2Fblob%2Fmain%2Ftypedocs%2Fenums%2FAppleButtonType.md) | no | all | yes |
+| onPress | Touch event. | () => void | yes | all | yes |
+| leftView | Left icon of the button. | ReactNode | no | all | yes |
+| buttonText | Button text. | string | no | all | yes |
## API
@@ -193,18 +193,18 @@ Check the release version information in the release address of the third-party
> [!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.
-**appleAuthHarmony**: Apple 身份验证对象,包含 2 个方法。
+**appleAuthHarmony**: Apple authentication object, including two methods
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------- | ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ----------------- |
-| configure | 配置 Apple 身份验证的信息,此接口必须在 signIn 之前调用 | ([Config](https://github.com/invertase/react-native-apple-authentication/blob/main/typedocs/interfaces/AndroidConfig.md)) => void | no | all | yes |
-| signIn | 弹出 webview 以进行 Apple 身份验证 | () => Promise< [SigninResponse](https://github.com/invertase/react-native-apple-authentication/blob/main/typedocs/interfaces/AndroidSigninResponse.md) > | no | all | no |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------- | ------------------------------------------------------- | ------------------------------------------------------------ | -------- | -------- | ----------------- |
+| configure | Configures Apple authentication information. This API must be called before **signIn**.| ([Config](https://github.com/invertase/react-native-apple-authentication/blob/main/typedocs/interfaces/AndroidConfig.md)) => void | no | all | yes |
+| signIn | Pops up the WebView for Apple authentication. | () => Promise< [SigninResponse](https://github.com/invertase/react-native-apple-authentication/blob/main/typedocs/interfaces/AndroidSigninResponse.md) > | no | all | no |
## Others
## Known Issues
-- [ ] 由于 Apple 开发者账户验证问题,HarmonyOS 暂无法实现的接口: [issue#1](https://github.com/react-native-oh-library/react-native-apple-authentication/issues/1)
+- [ ] Due to Apple developer account authentication issues, the following API is not supported by HarmonyOS: [issue#1](https://github.com/react-native-oh-library/react-native-apple-authentication/issues/1).
## License
--
Gitee
From 51183b71a18a4c57738b232d2a93799706eb4757 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:55:15 +0800
Subject: [PATCH 04/40] docs: [Issues: #IBDWTP]
react-native-background-timer.md
---
en/react-native-background-timer.md | 61 +++++++++++++----------------
1 file changed, 28 insertions(+), 33 deletions(-)
diff --git a/en/react-native-background-timer.md b/en/react-native-background-timer.md
index f60b2495..2039ce45 100644
--- a/en/react-native-background-timer.md
+++ b/en/react-native-background-timer.md
@@ -8,10 +8,10 @@ This project is based on [react-native-background-timer@2.4.1](https://github.co
This third-party library has been migrated to Gitee and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-linear-gradient`, The version correspondence details are as follows:
-| Version | Package Name | Repository | Release |
-| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- |
+| Version | Package Name | Repository | Release |
+| ------------------------- | -------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| <= 2.4.1-0.0.2@deprecated | @react-native-oh-tpl/react-native-background-timer | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-background-timer) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-background-timer/releases) |
-| > 2.4.2 | @react-native-ohos/react-native-background-timer | [Gitee](https://gitee.com/openharmony-sig/rntpc_react-native-background-timer) | [Gitee Releases](https://gitee.com/openharmony-sig/rntpc_react-native-background-timer/releases) |
+| > 2.4.2 | @react-native-ohos/react-native-background-timer | [Gitee](https://gitee.com/openharmony-sig/rntpc_react-native-background-timer) | [Gitee Releases](https://gitee.com/openharmony-sig/rntpc_react-native-background-timer/releases) |
## 1. Installation and Usage
@@ -44,37 +44,34 @@ import BackgroundTimer from "react-native-background-timer";
export function BackgroundTimerExample() {
let [count, setCount] = useState(0);
let [text, setText] = useState("");
- // BackgroundTimer延时
let [delay, setDelay] = useState("1000");
- // setTimeout延时
let [timeoutDelay, setTimeoutDelay] = useState("1000");
- // setInterval延时
let [intervalDelay, setIntervalDelay] = useState("1000");
let timeoutList:number[] = []
let [intervalList, setIntervalList] = useState([]);
-
+
// runBackgroundTimer
function onPressStart(){
- setText("开启定时器...")
+ setText("Turn on the timer...")
BackgroundTimer.runBackgroundTimer(()=>{
setCount(count+=1)
},parseInt(delay))
}
function onPressStop(){
- setText("结束定时器")
+ setText("Turn off the timer")
BackgroundTimer.stopBackgroundTimer()
}
// setTimeout
function setTimeoutStart(){
- setText("开启定时器...")
+ setText("Turn on the timer...")
let timeoutId = BackgroundTimer.setTimeout(()=>{
setCount(count+=1)
},parseInt(timeoutDelay))
timeoutList.push(timeoutId)
}
function setTimeoutStop(){
- setText("结束定时器")
+ setText("Turn off the timer")
if(timeoutList.length>0){
BackgroundTimer.clearTimeout(timeoutList[0])
timeoutList.shift()
@@ -83,14 +80,14 @@ export function BackgroundTimerExample() {
// setInterval
function setIntervalStart(){
- setText("开启定时器...")
+ setText("Turn on the timer...")
let intervalId = BackgroundTimer.setInterval(()=>{
setCount(count+=1)
},parseInt(intervalDelay))
setIntervalList([...intervalList,intervalId])
}
function setIntervalStop(){
- setText("结束定时器")
+ setText("Turn off the timer")
if(intervalList.length>0){
BackgroundTimer.clearInterval(intervalList[0])
intervalList.shift()
@@ -110,7 +107,7 @@ export function BackgroundTimerExample() {
/>
{setDelay(value)}}
value={delay}
/>
@@ -122,7 +119,7 @@ export function BackgroundTimerExample() {
/>
-
+
{setTimeoutDelay(value)}}
value={timeoutDelay}
/>
@@ -143,7 +140,7 @@ export function BackgroundTimerExample() {
/>
-
+
{setIntervalDelay(value)}}
value={intervalDelay}
/>
@@ -164,7 +161,7 @@ export function BackgroundTimerExample() {
/>
-
+
-> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-fingerprint-scanner)
+> [!tip] [GitHub address](https://github.com/react-native-oh-library/react-native-fingerprint-scanner)
## Installation and Usage
@@ -76,7 +76,7 @@ export default function App() {
## Use Codegen
-If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/zh-cn/codegen.md).
+If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/en/codegen.md).
## Link
@@ -123,7 +123,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
### 3. Introducing FingerprintScannerPackage to ArkTS
@@ -165,8 +165,8 @@ Check the release version information in the release address of the third-party
### Permission Requirements
-> [!TIP] "ohos.permission.ACCESS_BIOMETRIC"权限等级为system_basic
-> 在 `YourProject/entry/src/main/module.json5`补上配置
+> [!tip] The permission level of **ohos.permission.ACCESS_BIOMETRIC** is system_basic.
+> Add the configuration to the `YourProject/entry/src/main/module.json5` file.
```diff
{
@@ -185,32 +185,32 @@ Check the release version information in the release address of the third-party
## Static Methods
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!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.
+> [!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 |
-| ------------------------------------------------------- | ----------------------------------------------------------------------------------- | -------- | -------- | --------- | ----------------- |
-| `authenticate: (value: authenticate) => Promise;` | Starts Fingerprint authentication | function | No | All | YES |
-| `isSensorAvailable: () => Promise` | Checks if Fingerprint Scanner is able to be used by now. | function | No | All | YES |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------------------------------------- | ------------------------------------------------------------ | -------- | -------- | --------- | ----------------- |
+| `authenticate: (value: authenticate) => Promise;` | Starts Fingerprint authentication | function | No | All | YES |
+| `isSensorAvailable: () => Promise` | Checks if Fingerprint Scanner is able to be used by now. | function | No | All | YES |
| `release: () => void` | Stops fingerprint scanner listener, releases cache of internal state in native code | function | No | All | YES |
-| `onAttempt: () => {message?: string}` | when users are trying to scan their fingerprint but failed | function | No | HarmonyOS | YES |
+| `onAttempt: () => {message?: string}` | when users are trying to scan their fingerprint but failed | function | No | HarmonyOS | YES |
-###### authenticate 方法参数
+###### **Parameters of the authenticate API**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ----------------- | ------------------------------------------------------------------------------- | -------- | -------- | -------- | ----------------- |
-| `title` | the title text to display in the native | string | no | Android | yes |
-| `subTitle` | the sub title text to display in the native | string | no | Android | no |
-| `description` | the description text to display in the native | string | no | All | no |
-| `cancelButton` | e cancel button text to display in the native | string | no | Android | no |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| `title` | the title text to display in the native | string | no | Android | yes |
+| `subTitle` | the sub title text to display in the native | string | no | Android | no |
+| `description` | the description text to display in the native | string | no | All | no |
+| `cancelButton` | e cancel button text to display in the native | string | no | Android | no |
| `onAttempt` | a callback function when users are trying to scan their fingerprint but failed. | function | no | Android | no |
-| `fallbackEnabled` | default to true, whether to display fallback button | boolean | no | IOS | no |
+| `fallbackEnabled` | default to true, whether to display fallback button | boolean | no | IOS | no |
## Known Issues
-- [ ] 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)
+- [ ] Only title can be modified for HarmonyOS fingerprint authentication. subTitle, description, cancelButton, fallbackEnabled are not supported: [issue#8](https://github.com/react-native-oh-library/react-native-fingerprint-scanner/issues/8)
+- [ ] The callback function onAttempt should be separated out and not passed as a parameter to the authenticate method because authenticate does not support parameters of the function type: [issue#7](https://github.com/react-native-oh-library/react-native-fingerprint-scanner/issues/7)
## Others
--
Gitee
From a294794618eb7f3b719df6aa8660ecf6e413c5d1 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:58:07 +0800
Subject: [PATCH 20/40] docs: [Issues: #IBDWTP] react-native-flash-message.md
---
en/react-native-flash-message.md | 54 ++++++++++++++++----------------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/en/react-native-flash-message.md b/en/react-native-flash-message.md
index 05d061b6..dee67556 100644
--- a/en/react-native-flash-message.md
+++ b/en/react-native-flash-message.md
@@ -116,37 +116,37 @@ This document is verified based on the following versions:
For details, see [react-native-flash-message](https://github.com/lucasferreira/react-native-flash-message/blob/v0.4.0/README.md)
-| Name | Description | Required | Platform | HarmonyOS Support |
-| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- | ----------------- |
-| hideOnPress | Controls if the flash message can be closed on press | NO | iOS/Android | YES |
-| onPress | onPress callback for flash message press | NO | iOS/Android | YES |
-| onLongPress | onLongPress callback for flash message press | NO | iOS/Android | YES |
-| animated | Controls if the flash message will be shown with animation or not | NO | iOS/Android | YES |
-| animationDuration | Animations duration/speed | NO | iOS/Android | YES |
-| autoHide | Controls if the flash message can hide itself after some duration time | NO | iOS/Android | YES |
-| duration | How many milliseconds the flash message will be shown if the autoHide it's true | NO | iOS/Android | YES |
-| hideStatusBar | Controls if the flash message will auto hide the native status bar. Note: Works OK in iOS, not all Android versions support this. | NO | iOS/Android | YES |
-| statusBarHeight | Use this prop to set a custom status bar height that will be add in flash message padding top calc | NO | iOS/Android | YES |
-| floating | The floating prop unstick the message from the edges and applying some border radius to component | NO | iOS/Android | YES |
-| position | The position prop set the position of a flash message. Expected options: "top" (default), "bottom", "center" or a custom object with { top, left, right, bottom } position | NO | iOS/Android | YES |
+| Name | Description | Required | Platform | HarmonyOS Support |
+| ---------------------- | ------------------------------------------------------------ | -------- | ----------- | ----------------- |
+| hideOnPress | Controls if the flash message can be closed on press | NO | iOS/Android | YES |
+| onPress | onPress callback for flash message press | NO | iOS/Android | YES |
+| onLongPress | onLongPress callback for flash message press | NO | iOS/Android | YES |
+| animated | Controls if the flash message will be shown with animation or not | NO | iOS/Android | YES |
+| animationDuration | Animations duration/speed | NO | iOS/Android | YES |
+| autoHide | Controls if the flash message can hide itself after some duration time | NO | iOS/Android | YES |
+| duration | How many milliseconds the flash message will be shown if the autoHide it's true | NO | iOS/Android | YES |
+| hideStatusBar | Controls if the flash message will auto hide the native status bar. Note: Works OK in iOS, not all Android versions support this. | NO | iOS/Android | YES |
+| statusBarHeight | Use this prop to set a custom status bar height that will be add in flash message padding top calc | NO | iOS/Android | YES |
+| floating | The floating prop unstick the message from the edges and applying some border radius to component | NO | iOS/Android | YES |
+| position | The position prop set the position of a flash message. Expected options: "top" (default), "bottom", "center" or a custom object with { top, left, right, bottom } position | NO | iOS/Android | YES |
| icon | The icon prop could be a render function that return a new JSX Element to be placed in icon position OR a definition of the graphical icon of a flash message. Expected options: "none" (default), "auto" (guided by type), "success", "info", "warning", "danger", a custom icon (render function) or a custom object with icon type/name and position (left or right) attributes, e.g.: { icon: "success", position: "right" } | NO | iOS/Android | YES |
-| style | Apply a custom style object in flash message container | NO | iOS/Android | YES |
-| textStyle | Apply a custom style object in flash message descript/text text label | NO | iOS/Android | YES |
-| titleStyle | Apply a custom style object in flash message title text label | NO | iOS/Android | YES |
-| titleProps | Set a custom props object in flash message title text label | NO | iOS/Android | YES |
-| textProps | Set a custom props object in flash message all text components | NO | iOS/Android | YES |
-| iconProps | Set a custom props object to use inside the renderFlashMessageIcon method as third argument | NO | iOS/Android | YES |
-| renderBeforeContent | Render custom JSX before title in flash message. | NO | iOS/Android | YES |
-| renderCustomContent | Render custom JSX below title in flash message. | NO | iOS/Android | YES |
-| renderAfterContent | Render custom JSX after the title (or description) of a flash message. | NO | iOS/Android | YES |
-| renderFlashMessageIcon | Set a custom render function for inside message icons | NO | iOS/Android | YES |
-| transitionConfig | Set the transition config function used in shown/hide anim interpolations | NO | iOS/Android | YES |
-| canRegisterAsDefault | Use to handle if the instance can be registed as default/global instance | NO | iOS/Android | YES |
-| MessageComponent | Set the default flash message render component used to show all the messages | NO | iOS/Android | YES |
+| style | Apply a custom style object in flash message container | NO | iOS/Android | YES |
+| textStyle | Apply a custom style object in flash message descript/text text label | NO | iOS/Android | YES |
+| titleStyle | Apply a custom style object in flash message title text label | NO | iOS/Android | YES |
+| titleProps | Set a custom props object in flash message title text label | NO | iOS/Android | YES |
+| textProps | Set a custom props object in flash message all text components | NO | iOS/Android | YES |
+| iconProps | Set a custom props object to use inside the renderFlashMessageIcon method as third argument | NO | iOS/Android | YES |
+| renderBeforeContent | Render custom JSX before title in flash message. | NO | iOS/Android | YES |
+| renderCustomContent | Render custom JSX below title in flash message. | NO | iOS/Android | YES |
+| renderAfterContent | Render custom JSX after the title (or description) of a flash message. | NO | iOS/Android | YES |
+| renderFlashMessageIcon | Set a custom render function for inside message icons | NO | iOS/Android | YES |
+| transitionConfig | Set the transition config function used in shown/hide anim interpolations | NO | iOS/Android | YES |
+| canRegisterAsDefault | Use to handle if the instance can be registed as default/global instance | NO | iOS/Android | YES |
+| MessageComponent | Set the default flash message render component used to show all the messages | NO | iOS/Android | YES |
## Known Issues
-- [ ] iOS 和 鸿蒙侧效果有差异,隐藏手机状态栏是通过 RN 框架的 StatusBar 组件中的 StatusBar.setHidden()方法实现,具体效果有差异,暂未解决。原因: 鸿蒙系统手机顶部系统非安全区域块范围底部与前置摄像头挖空区域范围底部高度不一致,在显示和隐藏状态栏的过程中,系统非安全区域范围高度会有(0,136(不同手机不同)两种变化),导致内容组件所在窗口大小顶部位置会在两种状态下分别与前置摄像头挖空区域底部或系统非安全区域底部对齐,造成抖动,状态栏的显隐状态和 SystemAvoidView 这种类型的非安全区域大小不是强关联的。与 IOS 不一致原因: IOS 的顶部没有非安全区域,未做避让。
+- [ ] The effect on iOS is different from that on HarmonyOS. The **StatusBar.setHidden()** method in the **StatusBar** component of the RN framework is used to hide the status bar of the mobile phone. The specific effect varies and this issue has not been resolved. The reason is that on HarmonyOS smartphones, the bottom of the system non-safe area at the top of the phone is not consistent in height with the bottom of the front camera cutout area. During the process of showing and hiding the status bar, the height of the system non-safe area will be 0 or 136, varying by device. This causes the top of the window where the content component is located to align either with the bottom of the front camera cutout area or the bottom of the system non-safe area in the two states, resulting in jitter. The visibility state of the status bar and the size of the non-safe area of types like **SystemAvoidView** are not strongly correlated. Compared with HarmonyOS, iOS does not have a non-safe area at the top of the screen, which does not require the avoidance design.
## Others
--
Gitee
From fbc221101e9475a02bad09e78e888687c66cf6f7 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:58:16 +0800
Subject: [PATCH 21/40] docs: [Issues: #IBDWTP] react-native-gifted-chat.md
---
en/react-native-gifted-chat.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/en/react-native-gifted-chat.md b/en/react-native-gifted-chat.md
index a07923b4..c62cc000 100644
--- a/en/react-native-gifted-chat.md
+++ b/en/react-native-gifted-chat.md
@@ -186,9 +186,9 @@ RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE: DevEco Studio 5.0.3.4
## Known Issues
## Others
-- 输入框最大高 maxComposerHeight 设置无效果 maxComposerHeight为复杂数据类型,设置后在HarmonyOS侧效果偶发
-- 输入工具栏最小高 minInputToolbarHeight 设置无效,与iOS一致
-- 聊天与屏幕底部的距离 bottomOffset 设置无效,与iOS一致
+- The **maxComposerHeight** setting is invalid. **maxComposerHeight** is a complex data type, and its effect is sporadic on HarmonyOS.
+- The **minInputToolbarHeight** setting is invalid on HarmonyOS, which is consistent with that on iOS.
+- The **bottomOffset** setting is invalid on HarmonyOS, which is consistent with that on iOS.
## License
--
Gitee
From 2b017ecdd0ec73c0a4aedb3dd3c906d709e9ccc4 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:58:26 +0800
Subject: [PATCH 22/40] docs: [Issues: #IBDWTP] react-native-haptic-feedback.md
---
en/react-native-haptic-feedback.md | 64 +++++++++++++++---------------
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/en/react-native-haptic-feedback.md b/en/react-native-haptic-feedback.md
index 1ae50b1a..49094ddd 100644
--- a/en/react-native-haptic-feedback.md
+++ b/en/react-native-haptic-feedback.md
@@ -94,7 +94,7 @@ export const HapticFeedbackExample = () => {
## Use Codegen
-If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/zh-cn/codegen.md).
+If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/en/codegen.md).
## Link
@@ -142,7 +142,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
### 3. Introducing RNHapticFeedbackPackage to ArkTS
@@ -184,7 +184,7 @@ Check the release version information in the release address of the third-party
### Permission Requirements
-在 entry/src/main/module.json5 补上配置
+Add the configuration to the **entry/src/main/module.json5** file.
```js
"requestPermissions": [ { "name": "ohos.permission.VIBRATE" }, ]
@@ -201,43 +201,43 @@ Check the release version information in the release address of the third-party
`trigger(method, options)`
Use this method to trigger haptic feedback
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------- | -------- | ----------- | ----------------- |
-| `method` | Specifies the type of haptic feedback. See the list of available methods below. | string | yes | iOS/Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------------------- | ------------------------------------------------------------ | ------- | -------- | ----------- | ----------------- |
+| `method` | Specifies the type of haptic feedback. See the list of available methods below. | string | yes | iOS/Android | yes |
| `options.enableVibrateFallback` | iOS only. If haptic feedback is unavailable (iOS < 10 OR Device < iPhone6s), vibrate with default method (heavy 1s) (default: false). | boolean | no | iOS | no |
-| `options.ignoreAndroidSystemSettings` | Ignoreing phone mute mode setting and triggering haptic feedback. (default: false). | boolean | no | Android | yes |
+| `options.ignoreAndroidSystemSettings` | Ignoreing phone mute mode setting and triggering haptic feedback. (default: false). | boolean | no | Android | yes |
### method Overview
Here's an overview of the available methods and their compatibility
-| Name | Description | Type |Required|Platform|HarmonyOS Support|
-| ---- | :-----: | :----: |:---: |:----: |:------: |
-| `impactLight` | impactLight feedback | string |no|iOS/Android|yes|
-| `impactMedium` | impactMedium feedback | string |no|iOS/Android|yes|
-| `impactHeavy` | impactHeavy feedback | string |no|iOS/Android|yes|
-| `rigid` | rigid feedback | string |no|iOS/Android|yes|
-| `soft` | soft feedback | string |no|iOS/Android|yes|
-| `notificationSuccess` | notificationSuccess feedback | string |no|iOS/Android|yes|
-| `notificationWarning` | notificationWarning feedback | string |no|iOS/Android|yes|
-| `notificationError` | notificationError feedback | string |no|iOS/Android|yes|
-| `selection` | selection feedback | string |no|iOS|yes|
-| `clockTick` | clockTick feedback | string |no|Android|yes|
-| `contextClick` | contextClick feedback | string |no|Android|yes|
-| `keyboardPress` | keyboardPress feedback | string |no|Android|yes|
-| `keyboardRelease` | keyboardRelease feedback | string |no|Android|yes|
-| `keyboardTap` | keyboardTap feedback | string |no|Android|yes|
-| `longPress` | longPress feedback | string |no|Android|yes|
-| `textHandleMove` | textHandleMove feedback | string |no|Android|yes|
-| `virtualKey` | virtualKey feedback | string |no|Android|yes|
-| `virtualKeyRelease` | virtualKeyRelease feedback | string |no|Android|yes|
-| `effectClick` | effectClick feedback | string |no|Android|yes|
-| `effectDoubleClick` | effectDoubleClick feedback | string |no|Android|yes|
-| `effectHeavyClick` | effectHeavyClick feedback | string |no|Android|yes|
-| `effectTick` | effectTick feedback | string |no|Android|yes|
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------- | :--------------------------: | :----: | :------: | :---------: | :---------------: |
+| `impactLight` | impactLight feedback | string | no | iOS/Android | yes |
+| `impactMedium` | impactMedium feedback | string | no | iOS/Android | yes |
+| `impactHeavy` | impactHeavy feedback | string | no | iOS/Android | yes |
+| `rigid` | rigid feedback | string | no | iOS/Android | yes |
+| `soft` | soft feedback | string | no | iOS/Android | yes |
+| `notificationSuccess` | notificationSuccess feedback | string | no | iOS/Android | yes |
+| `notificationWarning` | notificationWarning feedback | string | no | iOS/Android | yes |
+| `notificationError` | notificationError feedback | string | no | iOS/Android | yes |
+| `selection` | selection feedback | string | no | iOS | yes |
+| `clockTick` | clockTick feedback | string | no | Android | yes |
+| `contextClick` | contextClick feedback | string | no | Android | yes |
+| `keyboardPress` | keyboardPress feedback | string | no | Android | yes |
+| `keyboardRelease` | keyboardRelease feedback | string | no | Android | yes |
+| `keyboardTap` | keyboardTap feedback | string | no | Android | yes |
+| `longPress` | longPress feedback | string | no | Android | yes |
+| `textHandleMove` | textHandleMove feedback | string | no | Android | yes |
+| `virtualKey` | virtualKey feedback | string | no | Android | yes |
+| `virtualKeyRelease` | virtualKeyRelease feedback | string | no | Android | yes |
+| `effectClick` | effectClick feedback | string | no | Android | yes |
+| `effectDoubleClick` | effectDoubleClick feedback | string | no | Android | yes |
+| `effectHeavyClick` | effectHeavyClick feedback | string | no | Android | yes |
+| `effectTick` | effectTick feedback | string | no | Android | yes |
## Known Issues
-- [ ] 自定义振动文件配置问题: [issue#6](https://github.com/react-native-oh-library/react-native-haptic-feedback/issues/6)
+- [ ] Custom vibration file configuration: [issue#6](https://github.com/react-native-oh-library/react-native-haptic-feedback/issues/6)
## Others
--
Gitee
From c0a68e9eb8fa04b50cc43b7393515d211e8398b5 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:58:35 +0800
Subject: [PATCH 23/40] docs: [Issues: #IBDWTP] react-native-hole-view.md
---
en/react-native-hole-view.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/en/react-native-hole-view.md b/en/react-native-hole-view.md
index 3c2088e5..4e49bdb3 100644
--- a/en/react-native-hole-view.md
+++ b/en/react-native-hole-view.md
@@ -277,10 +277,10 @@ Check the release version information in the release address of the third-party
## Known Issues
-- [ ] C API OH_ArkUI_PointerEvent_SetStopPropagation 方法阻止事件冒泡,无法控制 scrollView。导致 scrollView 在洞外也能滑动问题: [issue#1](https://github.com/react-native-oh-library/react-native-hole-view/issues/2)
+- [ ] Using C API OH_ArkUI_PointerEvent_SetStopPropagation to prevent the event from bubbling up causes scrollView out of control. This results in scrollView being able to scroll even outside the designated area: [issue#1](https://github.com/react-native-oh-library/react-native-hole-view/issues/2)
## Others
## License
-This project is licensed under [The MIT License (MIT)](https://mitlicense.org/),请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://mitlicense.org/).
--
Gitee
From b40d7978535224cbef784ac2231b9d717752a74c Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:58:45 +0800
Subject: [PATCH 24/40] docs: [Issues: #IBDWTP] react-native-htmlview.md
---
en/react-native-htmlview.md | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/en/react-native-htmlview.md b/en/react-native-htmlview.md
index 3bbba077..d0ad55be 100644
--- a/en/react-native-htmlview.md
+++ b/en/react-native-htmlview.md
@@ -91,27 +91,27 @@ export default HtmlViewExample;
This document is verified based on the following versions:
1. RNOH: 0.72.20-CAPI; SDK: HarmonyOS NEXT Developer Preview2; IDE: DevEco Studio 4.1.3.700; ROM: 3.0.0.19;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71 (API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
## Properties
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!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.
+> [!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.
-> [!TIP] 该库为 UI 组件库,可以在该库的标签下,使原本无法在 RN 框架生效的 Html 写法,可以实现对应的功能。
+> [!tip] This library is a UI component library. You can use the label of this library to implement the corresponding functions in HTML format that cannot take effect in the RN framework.
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------- | ------------------------------------------------------------------------------------------------------------------------ | ------ | -------- | -------- | ----------------- |
-| value | a string of HTML content to render | string | yes | All | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------- | ------------------------------------------------------------ | ------ | -------- | -------- | ----------------- |
+| value | a string of HTML content to render | string | yes | All | yes |
| onLinkPress | a function which will be called with a url when a link is pressed. Passing this prop will override how links are handled | string | no | All | yes |
-| onLinkLongPress | a function which will be called with a url when a link is long pressed. The default is | string | no | All | yes |
-| stylesheet | a stylesheet object keyed by tag name, which will override the styles applied to those respective tags. | string | no | All | yes |
-| renderNode | a custom function to render HTML nodes however you see fit. | string | no | All | yes |
-| bullet | text which is rendered before every inside a ` li``ul ` | string | no | All | yes |
-| paragraphBreak | text which appears after every element`p` | string | no | All | yes |
-| lineBreak | text which appears after text elements which create a new line | string | no | All | yes |
-| addLineBreaks | when explicitly , effectively sets | string | no | All | yes |
+| onLinkLongPress | a function which will be called with a url when a link is long pressed. The default is | string | no | All | yes |
+| stylesheet | a stylesheet object keyed by tag name, which will override the styles applied to those respective tags. | string | no | All | yes |
+| renderNode | a custom function to render HTML nodes however you see fit. | string | no | All | yes |
+| bullet | text which is rendered before every inside a ` li``ul ` | string | no | All | yes |
+| paragraphBreak | text which appears after every element`p` | string | no | All | yes |
+| lineBreak | text which appears after text elements which create a new line | string | no | All | yes |
+| addLineBreaks | when explicitly , effectively sets | string | no | All | yes |
## License
--
Gitee
From 5e9e2e805fcb911611e688d96d71b5a1e03009d9 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:58:54 +0800
Subject: [PATCH 25/40] docs: [Issues: #IBDWTP] react-native-idle-timer.md
---
en/react-native-idle-timer.md | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/en/react-native-idle-timer.md b/en/react-native-idle-timer.md
index 270b3699..6052e869 100644
--- a/en/react-native-idle-timer.md
+++ b/en/react-native-idle-timer.md
@@ -1,4 +1,3 @@
-
> Template version: v0.2.2
@@ -18,24 +17,24 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library:[@react-native-oh-tpl/react-native-idle-timer Releases](https://github.com/react-native-oh-library/react-native-idle-timer/releases).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.
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package:[@react-native-oh-tpl/react-native-idle-timer Releases](https://github.com/react-native-oh-library/react-native-idle-timer/releases).
Go to the project directory and execute the following instruction:
-
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-idle-timer
+npm install @react-native-oh-tpl/react-native-idle-timer@file:#
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-idle-timer
+yarn add @react-native-oh-tpl/react-native-idle-timer@file:#
```
@@ -164,13 +163,13 @@ Check the release version information in the release address of the third-party
## API
-> [!TIP] The Platform column indicates the platform where the properties are supported in the original third-party library.
+> [!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.
+> [!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 |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| setIdleTimerDisabled | enable/forbidden screen idle timer | function | no | All | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| -------------------- | ---------------------------------- | -------- | -------- | -------- | ----------------- |
+| setIdleTimerDisabled | enable/forbidden screen idle timer | function | no | All | yes |
## Known Issues
--
Gitee
From d67db65f079ad022ea48334e4dc2120f20c04398 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:59:04 +0800
Subject: [PATCH 26/40] docs: [Issues: #IBDWTP] react-native-inappbrowser.md
---
en/react-native-inappbrowser.md | 110 ++++++++++++++++----------------
1 file changed, 55 insertions(+), 55 deletions(-)
diff --git a/en/react-native-inappbrowser.md b/en/react-native-inappbrowser.md
index 9dd9ad2c..68ea00d8 100644
--- a/en/react-native-inappbrowser.md
+++ b/en/react-native-inappbrowser.md
@@ -274,13 +274,13 @@ export const tryDeepLinking = async () => {
} catch (error) {
console.error(error);
}
- return "Something’s wrong with the app";
+ return "Something's wrong with the app";
};
```
## Use Codegen
-If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/zh-cn/codegen.md).
+If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/en/codegen.md).
## Link
@@ -298,9 +298,9 @@ Adding the overrides Field to oh-package.json5 File in the Root Directory of the
}
```
-### 1.配置 Entry
+### 1. Configuring Entry
-**1.在 entry/src/main/ets/entryability 下创建 BrowserManagerAbility.ets**
+1. Create **BrowserManagerAbility.ets** in **entry/src/main/ets/entryability**.
```
import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit';
@@ -348,7 +348,7 @@ export default class BrowserManagerAbility extends UIAbility {
```
-**2.在 entry/src/main/module.json5 注册 BrowserManagerAbility**
+2. Register **BrowserManagerAbility** in **entry/src/main/module.json5**.
```
"abilities":[{
@@ -364,7 +364,7 @@ export default class BrowserManagerAbility extends UIAbility {
]
```
-**3.在 entry/src/main/ets/pages 下创建 BrowserManagerPage.ets**
+3. Create **BrowserManagerPage.ets** in **entry/src/main/ets/pages**.
```
import { BrowserPage } from '@react-native-oh-tpl/react-native-inappbrowser-reborn/Index'
@@ -385,7 +385,7 @@ struct ChromeTabsManagerPage {
}
```
-**4.在 entry/src/main/resources/base/profile/main_pages.json 添加配置**
+4. Add the following configuration to **entry/src/main/resources/base/profile/main_pages.json**:
```
{
@@ -396,7 +396,7 @@ struct ChromeTabsManagerPage {
}
```
-**5.如果需要预热应用内浏览器客户端,使其启动速度显著加快,可以将以下内容添加到 BrowserManagerAbility**
+5. If you want to warm up the browser client in your application to accelerate its startup, add the following content to **BrowserManagerAbility**:
```
import { RNInAppBrowserModule } from '@react-native-oh-tpl/react-native-inappbrowser-reborn/ts';
@@ -438,7 +438,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/link-source-code.md).
### 3. Introducing RNInAppBrowserPackage to ArkTS
@@ -481,62 +481,62 @@ Check the release version information in the release address of the third-party
> [!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 |
-| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ----------- | ----------------- |
-| open | Opens the url with Safari in a modal on iOS using SFSafariViewController, and Chrome in a new custom tab on Android. On iOS, the modal Safari will not share cookies with the system Safari. | function | no | iOS/Android | yes |
-| close | Dismisses the system's presented web browser. | function | no | iOS/Android | yes |
-| openAuth | Opens the url with Safari in a modal on iOS using SFAuthenticationSession/ASWebAuthenticationSession, and Chrome in a new custom tab on Android. On iOS, the user will be asked whether to allow the app to authenticate using the given url (OAuth flow with deep linking redirection). | function | no | iOS/Android | yes |
-| closeAuth | Dismisses the current authentication session. | function | no | iOS/Android | yes |
-| isAvailable | Detect if the device supports this plugin. | function | no | iOS/Android | yes |
-| onStart | Initialize a bound background service so the application can communicate its intention to the browser. After the service is connected, the client can be used to Warms up the browser to make navigation faster and indicates that a given URL may be loaded in the future. - Android Only. | function | no | Android | yes |
-| warmup | Warm up the browser process - Android Only. | function | no | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------ | ------------------------------------------------------------ | -------- | -------- | ----------- | ----------------- |
+| open | Opens the url with Safari in a modal on iOS using SFSafariViewController, and Chrome in a new custom tab on Android. On iOS, the modal Safari will not share cookies with the system Safari. | function | no | iOS/Android | yes |
+| close | Dismisses the system's presented web browser. | function | no | iOS/Android | yes |
+| openAuth | Opens the url with Safari in a modal on iOS using SFAuthenticationSession/ASWebAuthenticationSession, and Chrome in a new custom tab on Android. On iOS, the user will be asked whether to allow the app to authenticate using the given url (OAuth flow with deep linking redirection). | function | no | iOS/Android | yes |
+| closeAuth | Dismisses the current authentication session. | function | no | iOS/Android | yes |
+| isAvailable | Detect if the device supports this plugin. | function | no | iOS/Android | yes |
+| onStart | Initialize a bound background service so the application can communicate its intention to the browser. After the service is connected, the client can be used to Warms up the browser to make navigation faster and indicates that a given URL may be loaded in the future. - Android Only. | function | no | Android | yes |
+| warmup | Warm up the browser process - Android Only. | function | no | Android | yes |
| mayLaunchUrl | Tells the browser of a likely future navigation to a URL. The most likely URL has to be specified first. Optionally, a list of other likely URLs can be provided. They are treated as less likely than the first one, and have to be sorted in decreasing priority order. These additional URLs may be ignored. All previous calls to this method will be deprioritized - Android Only. | function | no | Android | yes |
## Properties
**iOS Options**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| dismissButtonStyle | The style of the dismiss button. [done/close/cancel] | String | NO | iOS | yes |
-| preferredBarTintColor | The color to tint the background of the navigation bar and the toolbar. [white/#FFFFFF] | String | NO | iOS | yes |
-| preferredControlTintColor | The color to tint the control buttons on the navigation bar and the toolbar. [gray/#808080] | String | NO | iOS | yes |
-| readerMode | A value that specifies whether Safari should enter Reader mode, if it is available. [true/false] | Boolean | NO | iOS | NO |
-| animated | Animate the presentation. [true/false] | Boolean | NO | iOS | NO |
-| modalPresentationStyle | The presentation style for modally presented view controllers. [automatic/none/fullScreen/pageSheet/formSheet/currentContext/custom/overFullScreen/overCurrentContext/popover] | String | NO | iOS | NO |
-| modalTransitionStyle | The transition style to use when presenting the view controller. [coverVertical/flipHorizontal/crossDissolve/partialCurl] | String | NO | IOS | NO |
-| modalEnabled | Present the SafariViewController modally or as push instead. [true/false] | Boolean | NO | iOS | NO |
-| enableBarCollapsing | Determines whether the browser's tool bars will collapse or not. [true/false] | Boolean | NO | iOS | NO |
-| ephemeralWebSession | Prevent re-use cookies of previous session (openAuth only) [true/false] | Boolean | NO | iOS | NO |
-| formSheetPreferredContentSize | Custom size for iPad formSheet modals [{width: 400, height: 500}] | Boolean | NO | iOS | NO |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------------------------- | ------------------------------------------------------------ | ------- | -------- | -------- | ----------------- |
+| dismissButtonStyle | The style of the dismiss button. [done/close/cancel] | String | NO | iOS | yes |
+| preferredBarTintColor | The color to tint the background of the navigation bar and the toolbar. [white/#FFFFFF] | String | NO | iOS | yes |
+| preferredControlTintColor | The color to tint the control buttons on the navigation bar and the toolbar. [gray/#808080] | String | NO | iOS | yes |
+| readerMode | A value that specifies whether Safari should enter Reader mode, if it is available. [true/false] | Boolean | NO | iOS | NO |
+| animated | Animate the presentation. [true/false] | Boolean | NO | iOS | NO |
+| modalPresentationStyle | The presentation style for modally presented view controllers. [automatic/none/fullScreen/pageSheet/formSheet/currentContext/custom/overFullScreen/overCurrentContext/popover] | String | NO | iOS | NO |
+| modalTransitionStyle | The transition style to use when presenting the view controller. [coverVertical/flipHorizontal/crossDissolve/partialCurl] | String | NO | IOS | NO |
+| modalEnabled | Present the SafariViewController modally or as push instead. [true/false] | Boolean | NO | iOS | NO |
+| enableBarCollapsing | Determines whether the browser's tool bars will collapse or not. [true/false] | Boolean | NO | iOS | NO |
+| ephemeralWebSession | Prevent re-use cookies of previous session (openAuth only) [true/false] | Boolean | NO | iOS | NO |
+| formSheetPreferredContentSize | Custom size for iPad formSheet modals [{width: 400, height: 500}] | Boolean | NO | iOS | NO |
**Android Options**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| showTitle | Sets whether the title should be shown in the custom tab. [true/false] | Boolean | NO | Android | NO |
-| toolbarColor | Sets the toolbar color. [gray/#808080] | String | NO | Android | NO |
-| secondaryToolbarColor | Sets the color of the secondary toolbar. [white/#FFFFFF] | String | NO | Android | NO |
-| navigationBarColor | Sets the navigation bar color. [gray/#808080] | String | NO | Android | NO |
-| navigationBarDividerColor | Sets the navigation bar divider color. [white/#FFFFFF] | String | NO | Android | NO |
-| enableUrlBarHiding | Enables the url bar to hide as the user scrolls down on the page. [true/false] | String | NO | Android | NO |
-| enableDefaultShare | Adds a default share item to the menu. [true/false] | String | NO | Android | NO |
-| animations | Sets the start and exit animations. [{ startEnter, startExit, endEnter, endExit }] | Object | NO | Android | NO |
-| headers | The data are key/value pairs, they will be sent in the HTTP request headers for the provided url. [{ 'Authorization': 'Bearer ...' }] | Object | NO | Android | NO |
-| forceCloseOnRedirection | Open Custom Tab in a new task to avoid issues redirecting back to app scheme. [true/false] | Boolean | NO | Android | NO |
-| hasBackButton | Sets a back arrow instead of the default X icon to close the custom tab. [true/false] | Boolean | NO | Android | NO |
-| browserPackage | Package name of a browser to be used to handle Custom Tabs. | Boolean | NO | Android | NO |
-| showInRecents | Determining whether browsed website should be shown as separate entry in Android recents/multitasking view. [true/false] | Boolean | NO | Android | NO |
-| includeReferrer | Determining whether to include your package name as referrer for the website to track. [true/false] | Boolean | NO | Android | NO |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------- | ------------------------------------------------------------ | ------- | -------- | -------- | ----------------- |
+| showTitle | Sets whether the title should be shown in the custom tab. [true/false] | Boolean | NO | Android | NO |
+| toolbarColor | Sets the toolbar color. [gray/#808080] | String | NO | Android | NO |
+| secondaryToolbarColor | Sets the color of the secondary toolbar. [white/#FFFFFF] | String | NO | Android | NO |
+| navigationBarColor | Sets the navigation bar color. [gray/#808080] | String | NO | Android | NO |
+| navigationBarDividerColor | Sets the navigation bar divider color. [white/#FFFFFF] | String | NO | Android | NO |
+| enableUrlBarHiding | Enables the url bar to hide as the user scrolls down on the page. [true/false] | String | NO | Android | NO |
+| enableDefaultShare | Adds a default share item to the menu. [true/false] | String | NO | Android | NO |
+| animations | Sets the start and exit animations. [{ startEnter, startExit, endEnter, endExit }] | Object | NO | Android | NO |
+| headers | The data are key/value pairs, they will be sent in the HTTP request headers for the provided url. [{ 'Authorization': 'Bearer ...' }] | Object | NO | Android | NO |
+| forceCloseOnRedirection | Open Custom Tab in a new task to avoid issues redirecting back to app scheme. [true/false] | Boolean | NO | Android | NO |
+| hasBackButton | Sets a back arrow instead of the default X icon to close the custom tab. [true/false] | Boolean | NO | Android | NO |
+| browserPackage | Package name of a browser to be used to handle Custom Tabs. | Boolean | NO | Android | NO |
+| showInRecents | Determining whether browsed website should be shown as separate entry in Android recents/multitasking view. [true/false] | Boolean | NO | Android | NO |
+| includeReferrer | Determining whether to include your package name as referrer for the website to track. [true/false] | Boolean | NO | Android | NO |
## Known Issues
-- [ ] 打开浏览器时,不能指定浏览器设置阅读模式 [#1](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/1)
-- [ ] 打开浏览器,无法使文稿动起来 [#2](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/2)
-- [ ] 无法设置浏览器的视图控制器的风格 [#3](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/3)
-- [ ] 无法设置浏览器的过度风格 [#4](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/4)
-- [ ] 无法设置浏览器的推送方式 [#5](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/5)
-- [ ] 浏览器无法设置工具栏进行折叠 [#6](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/6)
-- [ ] 浏览器设置是否重复使用前一次会话的 cookie [#7](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/7)
-- [ ] 浏览器设置模态框的自定义尺寸 [#8](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/8)
+- [ ] Failed to enable/disable the reading mode for the browser: [#1](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/1)
+- [ ] Failed to make the browser window open with an animation: [#2](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/2)
+- [ ] Failed to set the style of the web view controller for the browser: [#3](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/3)
+- [ ] Failed to set the browser's transition style: [#4](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/4)
+- [ ] Failed to set the browser's push mode: [#5](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/5)
+- [ ] Failed to collapse the toolbar for the browser: [#6](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/6)
+- [ ] Failed to specify whether to reuse the cookie of the previous session for the browser: [#7](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/7)
+- [ ] Failed to customize the size of the modal box for the browser: [#8](https://github.com/react-native-oh-library/react-native-inappbrowser/issues/8)
## Others
--
Gitee
From a164856aa71bf3a6137608af96e0e68e7abc8e75 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:59:13 +0800
Subject: [PATCH 27/40] docs: [Issues: #IBDWTP] react-native-incall-manager.md
---
en/react-native-incall-manager.md | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/en/react-native-incall-manager.md b/en/react-native-incall-manager.md
index 3cc6a6ce..c9b6b540 100644
--- a/en/react-native-incall-manager.md
+++ b/en/react-native-incall-manager.md
@@ -41,10 +41,10 @@ yarn add @react-native-oh-tpl/react-native-incall-manager@file:#
-**关于音频文件放置**
+**Storing Audio Files**
-> [!WARNING] 由于 HarmonyOS 暂不支持普通应用获取系统铃声,需要手动导入音频文件.
-> 将音频文件至 HarmonyOS 工程 `harmony`,entry/src/main/resources/rawfile 文件夹下,音频文件命名如下:
+> [!WARNING] HarmonyOS does not allow common applications to obtain system ringtones. You need to import audio files
+> to the **/entry/src/main/resources/rawfile** folder of the HarmonyOS project. The audio files should be named as follows:
> incallmanager_busytone.mp3
> incallmanager_ringback.mp3
> incallmanager_ringtone.mp3
@@ -382,14 +382,14 @@ export default function InCallManagerExample() {
onPress={() => {
turnScreenOn();
}}>
- turnScreenOn(iOS不支持)
+ turnScreenOn (not supported by iOS) {
turnScreenOff();
}}>
- turnScreenOff(iOS不支持)
+ turnScreenOff (not supported by iOS) [!TIP] "ohos.permission.RUNNING_LOCK","ohos.permission.KEEP_BACKGROUND_RUNNING"权限等级为normal,授权方式为system_grant
-> "ohos.permission.MICROPHONE"权限等级为normal,授权方式为user_grant,[使用 ACL 签名的配置指导](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/signing-0000001587684945-V3#section157591551175916)
+> [!TIP]The permission level of **ohos.permission.RUNNING_LOCK** and **ohos.permission.KEEP_BACKGROUND_RUNNING** is **normal** and the authorization mode is **system_grant**.
+> The permission level of **ohos.permission.MICROPHONE** is **normal**, and the authorization mode is **user_grant**. For details, see [Requesting ACL Permissions](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V2/signing-0000001587684945-V2#section157591551175916).
#### Include applicable permissions in the module.json5 file within the entry directory.
@@ -652,7 +652,7 @@ Add configuration to `YourProject/entry/src/main/module.json5`
+ "reason": "$string:Access_micphone",
+ "usedScene": {"when": "inuse"}
+ },
-+ { "name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
++ { "name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
+ "usedScene": {
+ "when": "always"
+ }
@@ -666,7 +666,7 @@ Add configuration to `YourProject/entry/src/main/resources/base/element/string.j
#### Apply the reasons for applicable permission in the entry directory.
-Open `entry/src/main/resources/base/element/string.json` file and add:
+Open `entry/src/main/resources/base/element/string.json` file and add:
```diff
...
@@ -727,14 +727,14 @@ Open `entry/src/main/resources/base/element/string.json` file and add:
## Known Issues
-- [ ] 打开关闭麦克风静音 setMicrophoneMute,未实现 HarmonyOS 化 问题: [issue#1](https://github.com/react-native-oh-library/react-native-incall-manager/issues/1)
-- [ ] 播放获取系统铃声,未实现 HarmonyOS 化 问题: [issue#2](https://github.com/react-native-oh-library/react-native-incall-manager/issues/2)
-- [ ] 手动切换输出设备扬声器与听筒切换 setSpeakerphoneOn、setForceSpeakerphoneOn,未实现 HarmonyOS 化 问题: [issue#3](https://github.com/react-native-oh-library/react-native-incall-manager/issues/3)
-- [ ] 手动切换音频输入输出设备 chooseAudioRoute,未实现 HarmonyOS 化 问题: [issue#4](https://github.com/react-native-oh-library/react-native-incall-manager/issues/4)
-- [ ] 监听MediaButton事件,未实现 HarmonyOS化 问题: [issue#18](https://github.com/react-native-oh-library/react-native-incall-manager/issues/18)
+- [ ] The **setMicrophoneMute** API is not supported on HarmonyOS: [issue#1](https://github.com/react-native-oh-library/react-native-incall-manager/issues/1).
+- [ ] The system ringtones cannot be played on HarmonyOS: [issue#2](https://github.com/react-native-oh-library/react-native-incall-manager/issues/2).
+- [ ] The **setSpeakerphoneOn** and **setForceSpeakerphoneOn** APIs are not supported on HarmonyOS: [issue#3](https://github.com/react-native-oh-library/react-native-incall-manager/issues/3).
+- [ ] The **chooseAudioRoute** API is not supported on HarmonyOS: [issue#4](https://github.com/react-native-oh-library/react-native-incall-manager/issues/4).
+- [ ] Listening for the **MediaButton** event is not supported on HarmonyOS: [issue#18](https://github.com/react-native-oh-library/react-native-incall-manager/issues/18).
## Others
## License
-This project is licensed under [The ISC License (ISC)](https://github.com/react-native-webrtc/react-native-incall-manager/blob/master/LICENSE).
+This project is licensed under [ISC License](https://github.com/react-native-webrtc/react-native-incall-manager/blob/master/LICENSE).
--
Gitee
From fca4741cb541f30eae0489ab52cac8e6ef842969 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:59:22 +0800
Subject: [PATCH 28/40] docs: [Issues: #IBDWTP] react-native-json-tree.md
---
en/react-native-json-tree.md | 56 ++++++++++++++++++------------------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/en/react-native-json-tree.md b/en/react-native-json-tree.md
index 3b618556..6a989165 100644
--- a/en/react-native-json-tree.md
+++ b/en/react-native-json-tree.md
@@ -170,29 +170,29 @@ export default () => {
style={{ height: "100%", marginBottom: 20, backgroundColor: "pink" }}
>
- 要展示的 JSON 数据对象
+ Specify the JSON data object to be displayed
- 定制树状视图的主题样式
+ Customize the theme style of the tree view
- 控制节点是否展开的函数
+ Specify whether to expand nodes
- 是否隐藏树的根节点
+ Specify whether to hide the root node
- 是否反转主题颜色
+ Specify whether to reverse the theme color
- 自定义节点的显示文本
+ Customize the display text of a node {
@@ -205,7 +205,7 @@ export default () => {
/>
- 自定义节点标签的渲染函数
+ Customize the rendering mode of a node label (
@@ -214,7 +214,7 @@ export default () => {
/>
- 自定义节点值的渲染函数
+ Customize the rendering mode of a node value (
@@ -223,7 +223,7 @@ export default () => {
/>
- 对 JSON 对象的键进行排序
+ Sort JSON objects by key {
@@ -232,19 +232,19 @@ export default () => {
/>
- 用于在 JSON 树中标识和定制特定路径的数据节点
+ Identify and customize data nodes in a specified path in the JSON tree
- 用于控制在 JSON 树中显示的集合的元素最大数量
+ Set the maximum number of elements that can be displayed in the JSON tree
- 用于在值渲染之前对其进行自定义处理
+ Perform custom processing on the value before it is rendered to the interface
- 指定哪些节点应使用自定义渲染的属性
+ Specify the nodes that use the custom rendering property
@@ -261,7 +261,7 @@ To use this repository, you need to use the correct React-Native and RNOH versio
This document is verified based on the following versions:
1. RNOH: 0.72.29; SDK: HarmonyOS NEXT Developer Beta6; IDE: DevEco Studio 5.0.3.706; ROM: NEXT.0.0.36;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71 (API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
## Properties
@@ -271,21 +271,21 @@ For details, see [react-native-json-tree docs](https://github.com/Dean177/react-
> [!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 |
-| ------------------ | ----------------------------------------------------------------------------------------- | ------------ | -------- | -------- | ----------------- |
-| `data` | `JSON data object to be displayed`. | `Object` | Yes | All | Yes |
-| `theme` | `Theme style of the tree view.` | `Object` | No | All | Yes |
-| `shouldExpandNode` | `Function that controls whether a node is expanded`. | `() => bool` | No | All | Yes |
-| `hideRoot` | `Whether to hide the root node of the tree`. | `bool` | No | All | Yes |
-| `invertTheme` | `Indicates whether to reverse the theme color.` | `bool` | No | All | Yes |
-| `getItemString` | `Customize the display of arrays, objects, and iterable nodes.` | `()=>void` | No | All | Yes |
-| `labelRenderer` | `Rendering function for custom node labels`. | `()=>void` | No | All | Yes |
-| `valueRenderer` | `Rendering function for custom node values`. | `()=>void` | No | All | Yes |
-| `sortObjectKeys` | `Sort the keys of JSON objects`. | `()=>void` | No | All | Yes |
-| `keyPath` | `A data node used to identify and customize a specific path in a JSON tree`. | `['']` | No | All | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------ | ------------------------------------------------------------ | ------------ | -------- | -------- | ----------------- |
+| `data` | `JSON data object to be displayed`. | `Object` | Yes | All | Yes |
+| `theme` | `Theme style of the tree view.` | `Object` | No | All | Yes |
+| `shouldExpandNode` | `Function that controls whether a node is expanded`. | `() => bool` | No | All | Yes |
+| `hideRoot` | `Whether to hide the root node of the tree`. | `bool` | No | All | Yes |
+| `invertTheme` | `Indicates whether to reverse the theme color.` | `bool` | No | All | Yes |
+| `getItemString` | `Customize the display of arrays, objects, and iterable nodes.` | `()=>void` | No | All | Yes |
+| `labelRenderer` | `Rendering function for custom node labels`. | `()=>void` | No | All | Yes |
+| `valueRenderer` | `Rendering function for custom node values`. | `()=>void` | No | All | Yes |
+| `sortObjectKeys` | `Sort the keys of JSON objects`. | `()=>void` | No | All | Yes |
+| `keyPath` | `A data node used to identify and customize a specific path in a JSON tree`. | `['']` | No | All | Yes |
| `collectionLimit` | `Use to control the maximum number of elements of a collection displayed in a JSON tree`. | `number` | No | All | Yes |
-| `postprocessValue` | `For customizing values before they are rendered`. | `()=>void` | No | All | Yes |
-| `isCustomNode` | `Specify which nodes should use custom rendered properties.` | `()=>bool` | No | All | Yes |
+| `postprocessValue` | `For customizing values before they are rendered`. | `()=>void` | No | All | Yes |
+| `isCustomNode` | `Specify which nodes should use custom rendered properties.` | `()=>bool` | No | All | Yes |
## Known Issues
--
Gitee
From fb0ab27589e53272ea70f1e057e8ece6991f07fc Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:59:31 +0800
Subject: [PATCH 29/40] docs: [Issues: #IBDWTP] react-native-keep-awake.md
---
en/react-native-keep-awake.md | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/en/react-native-keep-awake.md b/en/react-native-keep-awake.md
index 9aae36df..224edddc 100644
--- a/en/react-native-keep-awake.md
+++ b/en/react-native-keep-awake.md
@@ -17,7 +17,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-keep-awake Releases](https://github.com/react-native-oh-library/react-native-keep-awake/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-keep-awake Releases](https://github.com/react-native-oh-library/react-native-keep-awake/releases). 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.
Go to the project directory and execute the following instruction:
@@ -155,7 +155,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] 源码位于三方库安装路径的 `harmony` 文件夹下。
+> [!TIP] The source code is stored in the `harmony` folder in the installation path of the third-party library.
Open `entry/oh-package.json5` file and add the following dependencies:
@@ -212,24 +212,24 @@ Check the release version information in the release address of the third-party
This document is verified based on the following versions:
-1. RNOH: 0.72.20; SDK: HarmonyOS NEXT Developer Beta1 B.0.18、HarmonyOS NEXT Developer Preview0 B.0.60、HarmonyOS NEXT Developer Preview2 B.0.73; IDE: DevEco Studio 5.0.3.200; ROM: 2.0.0.18;
+1. RNOH: 0.72.20; SDK: HarmonyOS NEXT Developer Beta1 B.0.18, HarmonyOS NEXT Developer Preview0 B.0.60, HarmonyOS NEXT Developer Preview2 B.0.73; IDE: DevEco Studio 5.0.3.200; ROM: 2.0.0.18;
-## 使用方法
+## Usage
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] 功能函数形式使用下,新老接口均可使用。
+> [!tip] Both old and new APIs can be used in the form of functions.
-> [!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.
+> [!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 | Required | Platform | HarmonyOS Support |
| ---------------------- | ---------------------------------------------- | -------- | -------- | ----------------- |
-| `` | 组件形式使用,开启当前屏幕常亮模式 | No | All | yes |
-| KeepAwake.activate() | 功能函数形式使用,开启当前屏幕常亮模式(老接口) | No | All | yes |
-| KeepAwake.deactivate() | 功能函数形式使用,开启当前屏幕常亮模式(老接口) | No | All | yes |
-| useKeepAwake() | hooks 形式使用 | No | All | yes |
-| activateKeepAwake() | 功能函数形式使用,开启当前屏幕常亮模式(新接口) | No | All | yes |
-| deactivateKeepAwake() | 功能函数形式使用,关闭当前屏幕常亮模式(新接口) | No | All | yes |
+| `` | Component that activates the current screen-on mode. | No | All | yes |
+| KeepAwake.activate() | Function that deactivates the current screen-on mode (old API).| No | All | yes |
+| KeepAwake.deactivate() | Function that deactivates the current screen-on mode (old API).| No | All | yes |
+| useKeepAwake() | Hook. | No | All | yes |
+| activateKeepAwake() | Function that activates the current screen-on mode (new API).| No | All | yes |
+| deactivateKeepAwake() | Function that deactivates the current screen-on mode (new API).| No | All | yes |
## Known Issues
--
Gitee
From 83094f62897d71100e5a1091f550d1a8aea40937 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:59:41 +0800
Subject: [PATCH 30/40] docs: [Issues: #IBDWTP]
react-native-keyboard-controller.md
---
en/react-native-keyboard-controller.md | 180 ++++++++++++-------------
1 file changed, 90 insertions(+), 90 deletions(-)
diff --git a/en/react-native-keyboard-controller.md b/en/react-native-keyboard-controller.md
index 273019b8..4c3f97e3 100644
--- a/en/react-native-keyboard-controller.md
+++ b/en/react-native-keyboard-controller.md
@@ -40,7 +40,7 @@ yarn add @react-native-oh-tpl/react-native-keyboard-controller@file:#
The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-reanimated. If this library is included into your HarmonyOS application, there is no need to include it again; you can skip the steps in this section and use it directly.
-If it is not included, follow the guide provided in [react-native-reanimated docs](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-reanimated.md) to add it to your project.
+If it is not included, follow the guide provided in [react-native-reanimated docs](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-reanimated.md) to add it to your project.
The following code shows the basic use scenario of the repository:
@@ -174,9 +174,9 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3. Configuring CMakeLists and Introducing RNKeyboardControllerPackage,RNStatusBarManagerCompatPackage
+### 3. Configuring CMakeLists and Introducing RNKeyboardControllerPackage and RNStatusBarManagerCompatPackage
Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
@@ -235,7 +235,7 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4. Introducing RNKeyboardControllerPackage,RNStatusBarManagerCompatPackage to ArkTS
+### 4. Introducing RNKeyboardControllerPackage and RNStatusBarManagerCompatPackage to ArkTS
Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
@@ -279,137 +279,137 @@ Check the release version information in the release address of the third-party
> [!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.
**Hooks**:Keyboard controller-related hook functions
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| useKeyboardAnimation | Hook function for obtaining keyboard animation values | function | no | iOS,Android | yes |
-| useReanimatedKeyboardAnimation |Hook function for obtaining keyboard animation values | function | no | iOS,Android | yes |
-| useKeyboardHandler | Sets the hook function of the keyboard callback event. | function | no | iOS,Android | yes |
-| useKeyboardController | Hook function for setting whether to enable keyboard listening events |function | no | iOS,Android | yes |
-| useFocusedInputHandler | Sets the hook function for listening to the input box callback event.( Text change listening is supported in HarmonyOS) | function | no | iOS,Android |partially |
-| useReanimatedFocusedInput | Hook function for calling back the text change event of the currently focused input control.| function | no | iOS,Android |no |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------------ | ------------------------------------------------------------ | -------- | -------- | ----------- | ----------------- |
+| useKeyboardAnimation | Hook function for obtaining keyboard animation values | function | no | iOS,Android | yes |
+| useReanimatedKeyboardAnimation | Hook function for obtaining keyboard animation values | function | no | iOS,Android | yes |
+| useKeyboardHandler | Sets the hook function of the keyboard callback event. | function | no | iOS,Android | yes |
+| useKeyboardController | Hook function for setting whether to enable keyboard listening events | function | no | iOS,Android | yes |
+| useFocusedInputHandler | Sets the hook function for listening to the input box callback event.( Text change listening is supported in HarmonyOS) | function | no | iOS,Android | partially |
+| useReanimatedFocusedInput | Hook function for calling back the text change event of the currently focused input control. | function | no | iOS,Android | no |
**KeyboardController**: Keyboard controller
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---------------------------------------- | -------------------- | -------- | -------- | ----------- | ----------------- |
-| setInputMode(mode: number): void | Setting the Keyboard Display Mode | function | no | Android | no |
-| setDefaultMode(): void | Setting the Default Keyboard Display Mode| function | no | Android | no |
-| dismiss(): void | Set Keyboard Hide | function | no | iOS,Android | yes |
-| setFocusTo(direction: string): void | Setting the mode of focus | function | no | iOS,Android | no |
-| addListener: (eventName: string) => void | Adding a Keyboard Listening Event | function | no | iOS,Android | yes |
-| removeListeners: (count: number) => void | Delete the listening event of the keyboard. | function | no | iOS,Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------------------------------- | ------------------------------------------- | -------- | -------- | ----------- | ----------------- |
+| setInputMode(mode: number): void | Setting the Keyboard Display Mode | function | no | Android | no |
+| setDefaultMode(): void | Setting the Default Keyboard Display Mode | function | no | Android | no |
+| dismiss(): void | Set Keyboard Hide | function | no | iOS,Android | yes |
+| setFocusTo(direction: string): void | Setting the mode of focus | function | no | iOS,Android | no |
+| addListener: (eventName: string) => void | Adding a Keyboard Listening Event | function | no | iOS,Android | yes |
+| removeListeners: (count: number) => void | Delete the listening event of the keyboard. | function | no | iOS,Android | yes |
**StatusBarManagerCompat**: Status Bar Controller
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ------------------------------------------------ | -------------------- | -------- | -------- | -------- | ----------------- |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------------------------------ | ---------------------------------------------- | -------- | -------- | -------- | ----------------- |
| setHidden(hidden: boolean): void | Set the status bar to be hidden and invisible. | function | no | Android | yes |
-| setColor(color: number, animated: boolean): void | Setting the background color of the status bar | function | no | Android | no |
-| setTranslucent(translucent: boolean): void | Sets whether the status bar is transparent. | function | no | Android | no |
-| setStyle(style: string): void | Setting the Content Color of the Status Bar | function | no | Android | yes |
+| setColor(color: number, animated: boolean): void | Setting the background color of the status bar | function | no | Android | no |
+| setTranslucent(translucent: boolean): void | Sets whether the status bar is transparent. | function | no | Android | no |
+| setStyle(style: string): void | Setting the Content Color of the Status Bar | function | no | Android | yes |
**KeyboardEvents**:Listening for keyboard events
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---------------- | ---------------- | ------ | -------- | ----------- | ----------------- |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------- | --------------------------------------- | ------ | -------- | ----------- | ----------------- |
| keyboardWillShow | The keyboard is about to display events | string | no | iOS,Android | no |
-| keyboardDidShow | Keyboard has shown events | string | no | iOS,Android | yes |
-| keyboardWillHide | Keyboard is about to hide events | string | no | iOS,Android | no |
-| keyboardDidHide | Keyboard has hidden events | string | no | iOS,Android | yes |
+| keyboardDidShow | Keyboard has shown events | string | no | iOS,Android | yes |
+| keyboardWillHide | Keyboard is about to hide events | string | no | iOS,Android | no |
+| keyboardDidHide | Keyboard has hidden events | string | no | iOS,Android | yes |
**FocusedInputEvents**:Listening to the event of focusing on Input
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ----------- | ------------------ | ------ | -------- | ----------- | ----------------- |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------- | -------------------------------- | ------ | -------- | ----------- | ----------------- |
| focusDidSet | Focus on the event type of Input | string | no | iOS,Android | no |
**WindowDimensionsEvents**:Listening to window layout change events
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------- | ------------ | ------ | -------- | -------- | ----------------- |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------- | --------------------------- | ------ | -------- | -------- | ----------------- |
| windowDidResize | Listening for window events | string | no | Android | no |
## Component
**KeyboardControllerView**: Keyboard controller View
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------------------------------------------------------------------------------- | -------------------------------- | ----------- | -------- | ----------- | ----------------- |
-| enabled | A boolean prop indicating whether the module is enabled. It indicate only initial state, i. e. if you try to change this prop after component mount it will not have any effect. To change the property in runtime use`useKeyboardController` hook and `setEnabled` method.Defaults to `true`. | boolean | no | iOS,Android | yes |
-| statusBarTranslucent | Set the value to `true`, if you use translucent status bar on Android,Defaults to `false`.If you already control status bar translucency via `react-native-screens`or `StatusBar` component from `react-native`, you can ignore it | boolean | no | Android | no |
-| navigationBarTranslucent | Set the value to `true`, if you use translucent navigation bar on Android,Defaults to `false` | boolean | no | Android | no |
-| onKeyboardMoveStart?: DirectEventHandler < KeyboardMoveEvent > |Listening event when the keyboard starts to move | function | no | iOS,Android | no |
-| onKeyboardMove?: DirectEventHandler< KeyboardMoveEvent > | Listening events in keyboard movement | function | no | iOS,Android | no |
-| onKeyboardMoveEnd?: DirectEventHandler< KeyboardMoveEvent > | Listening event of the end of keyboard movement | function | no | iOS,Android | yes |
-| onKeyboardMoveInteractive?: DirectEventHandler< KeyboardMoveEvent > | Listening event of keyboard movement interaction | function | no | iOS,Android | no |
-| onFocusedInputLayoutChanged?: DirectEventHandler < FocusedInputLayoutChangedEvent > | Listening event of the coordinate change of the focus text box position | function | no | iOS,Android | no |
-| onFocusedInputTextChanged?: DirectEventHandler< FocusedInputTextChangedEvent> | Listening event that focuses on text changes in Input | function | no | iOS,Android | yes |
-| onFocusedInputSelectionChanged?: DirectEventHandler< FocusedInputSelectionChangedEvent> | Listening event of focusing on text selection in Input | function | no | iOS,Android | no |
-| style | Style of the KeyboardControllerView | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | iOS,Android | yes |
-| children | children of the KeyboardControllerView | JSX.Element | no | iOS,Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------ | -------- | ----------- | ----------------- |
+| enabled | A boolean prop indicating whether the module is enabled. It indicate only initial state, i. e. if you try to change this prop after component mount it will not have any effect. To change the property in runtime use`useKeyboardController` hook and `setEnabled` method.Defaults to `true`. | boolean | no | iOS,Android | yes |
+| statusBarTranslucent | Set the value to `true`, if you use translucent status bar on Android,Defaults to `false`.If you already control status bar translucency via `react-native-screens`or `StatusBar` component from `react-native`, you can ignore it | boolean | no | Android | no |
+| navigationBarTranslucent | Set the value to `true`, if you use translucent navigation bar on Android,Defaults to `false` | boolean | no | Android | no |
+| onKeyboardMoveStart?: DirectEventHandler < KeyboardMoveEvent > | Listening event when the keyboard starts to move | function | no | iOS,Android | no |
+| onKeyboardMove?: DirectEventHandler< KeyboardMoveEvent > | Listening events in keyboard movement | function | no | iOS,Android | no |
+| onKeyboardMoveEnd?: DirectEventHandler< KeyboardMoveEvent > | Listening event of the end of keyboard movement | function | no | iOS,Android | yes |
+| onKeyboardMoveInteractive?: DirectEventHandler< KeyboardMoveEvent > | Listening event of keyboard movement interaction | function | no | iOS,Android | no |
+| onFocusedInputLayoutChanged?: DirectEventHandler < FocusedInputLayoutChangedEvent > | Listening event of the coordinate change of the focus text box position | function | no | iOS,Android | no |
+| onFocusedInputTextChanged?: DirectEventHandler< FocusedInputTextChangedEvent> | Listening event that focuses on text changes in Input | function | no | iOS,Android | yes |
+| onFocusedInputSelectionChanged?: DirectEventHandler< FocusedInputSelectionChangedEvent> | Listening event of focusing on text selection in Input | function | no | iOS,Android | no |
+| style | Style of the KeyboardControllerView | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | iOS,Android | yes |
+| children | children of the KeyboardControllerView | JSX.Element | no | iOS,Android | yes |
**KeyboardGestureArea**:Gesture Control Keyboard Assembly
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| -------------------- | ---------------------------- | -------------------- | -------- | -------- | ----------------- |
-| showOnSwipeUp | The keyboard slides up with the gesture to display | boolean | no | Android | no |
-| enableSwipeToDismiss | The keyboard slides down with the gesture to hide | boolean | no | Android | no |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| -------------------- | ------------------------------------------------------------ | -------------------- | -------- | -------- | ----------------- |
+| showOnSwipeUp | The keyboard slides up with the gesture to display | boolean | no | Android | no |
+| enableSwipeToDismiss | The keyboard slides down with the gesture to hide | boolean | no | Android | no |
| interpolator | Sets the animation mode for the keyboard to slide with gestures. | linear / ios/ linear | no | Android | no |
**KeyboardAvoidingView**:Container Assembly for Keyboard Controller
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---------------------- | -------------------------------------------------------------- | ------------------------------------------------------ | -------- | ----------- | ----------------- |
-| behavior | Specify how to react to the presence of the keyboard (HarmonyOS now only surpport position) | "height" / "position" / "padding" | no | iOS,Android | partially |
-| contentContainerStyle |Style of the content container when `behavior` is 'position' | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | Android | yes |
-| enabled | Controls whether this `KeyboardAvoidingView` instance should take effect. This is useful when more than one is on the screen. Defaults to true | boolean | no | Android | yes |
-| keyboardVerticalOffset | Distance between the top of the user screen and the React Native view. This may be non-zero in some cases. Defaults to 0. | number | no | iOS,Android | yes |
-| onLayout | layout change event | function/undefined | no | iOS,Android | yes |
-| style | Style of the KeyboardAvodingView | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | iOS,Android | yes |
-| children | children of the KeyboardAvodingView | JSX.Element | no | iOS,Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------------- | ------------------------------------------------------------ | ------------------------------------------------------ | -------- | ----------- | ----------------- |
+| behavior | Specify how to react to the presence of the keyboard (HarmonyOS now only surpport position) | "height" / "position" / "padding" | no | iOS,Android | partially |
+| contentContainerStyle | Style of the content container when `behavior` is 'position' | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | Android | yes |
+| enabled | Controls whether this `KeyboardAvoidingView` instance should take effect. This is useful when more than one is on the screen. Defaults to true | boolean | no | Android | yes |
+| keyboardVerticalOffset | Distance between the top of the user screen and the React Native view. This may be non-zero in some cases. Defaults to 0. | number | no | iOS,Android | yes |
+| onLayout | layout change event | function/undefined | no | iOS,Android | yes |
+| style | Style of the KeyboardAvodingView | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | iOS,Android | yes |
+| children | children of the KeyboardAvodingView | JSX.Element | no | iOS,Android | yes |
**KeyboardAwareScrollView**: Container assembly for scroll keyboard controller
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------ | -------- | ----------- | ----------------- |
-| bottomOffset | The distance between keyboard and focused `TextInput` when keyboard is shown | number | no | iOS,Android | no |
-| enabled | Controls whether this `KeyboardAwareScrollView` instance should take effect. Default is `true` | boolean | no | Android | no |
-| disableScrollOnKeyboardHide | Prevents automatic scrolling of the `ScrollView` when the keyboard gets hidden, maintaining the current screen position. Default is `false` | boolean | no | Android | no |
-| extraKeyboardSpace |Adjusting the bottom spacing of KeyboardAwareScrollView. Default is `0` | number | no | iOS,Android | no |
-| onLayout | Layout change event | function/undefined | no | iOS,Android | yes |
-| style | component style | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | iOS,Android | yes |
-| children | children element | JSX.Element | no | iOS,Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------------- | ------------------------------------------------------------ | ------------------------------------------------------ | -------- | ----------- | ----------------- |
+| bottomOffset | The distance between keyboard and focused `TextInput` when keyboard is shown | number | no | iOS,Android | no |
+| enabled | Controls whether this `KeyboardAwareScrollView` instance should take effect. Default is `true` | boolean | no | Android | no |
+| disableScrollOnKeyboardHide | Prevents automatic scrolling of the `ScrollView` when the keyboard gets hidden, maintaining the current screen position. Default is `false` | boolean | no | Android | no |
+| extraKeyboardSpace | Adjusting the bottom spacing of KeyboardAwareScrollView. Default is `0` | number | no | iOS,Android | no |
+| onLayout | Layout change event | function/undefined | no | iOS,Android | yes |
+| style | component style | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | iOS,Android | yes |
+| children | children element | JSX.Element | no | iOS,Android | yes |
**KeyboardStickyView**: Container assembly for scroll keyboard controller
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| -------- | ---------------------------------- | ------------------------------------------------------ | -------- | ----------- | ----------------- |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| -------- | ------------------------------------------------------------ | ------------------------------------------------------ | -------- | ----------- | ----------------- |
| offset | Specify additional offset to the view for given keyboard state | {closed?: number;opened?: number;} | no | iOS,Android | yes |
-| style | component style | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | iOS,Android | yes |
-| children | children element | JSX.Element | no | iOS,Android | yes |
+| style | component style | [ ViewStyle ](https://reactnative.dev/docs/view#props) | no | iOS,Android | yes |
+| children | children element | JSX.Element | no | iOS,Android | yes |
**KeyboardToolbar**: a component that is shown above the keyboard with `Prev`/`Next` and `Done` buttons.
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------------------- | ------------------------------------------------------ | ---------------------------- | -------- | ----------- | ----------------- |
-| theme | A set of dark/light colors consumed by toolbar component | {light: Theme; dark: Theme;} | no | iOS,Android | yes |
-| content | An element that is shown in the middle of the toolbar | JSX.Element | no | iOS,Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------------- | ------------------------------------------------------------ | ---------------------------- | -------- | ----------- | ----------------- |
+| theme | A set of dark/light colors consumed by toolbar component | {light: Theme; dark: Theme;} | no | iOS,Android | yes |
+| content | An element that is shown in the middle of the toolbar | JSX.Element | no | iOS,Android | yes |
| doneText | Custom text for done button | React.ReactNode | no | iOS,Android | yes |
-| button | Custom touchable component for toolbar (used for prev/next/done buttons) | React.ReactNode | no | iOS,Android | yes |
-| icon | Custom icon component used to display next/prev buttons | React.ReactNode | no | iOS,Android | yes |
-| showArrows | Whether to show next and previous buttons. Can be useful to set it to `false` if you have only one input and want to show only `Done` button. Default to `true` | boolean | no | iOS,Android | yes |
-| blur | A component that applies blur effect to the toolbar | JSX.Element | no | iOS,Android | yes |
+| button | Custom touchable component for toolbar (used for prev/next/done buttons) | React.ReactNode | no | iOS,Android | yes |
+| icon | Custom icon component used to display next/prev buttons | React.ReactNode | no | iOS,Android | yes |
+| showArrows | Whether to show next and previous buttons. Can be useful to set it to `false` if you have only one input and want to show only `Done` button. Default to `true` | boolean | no | iOS,Android | yes |
+| blur | A component that applies blur effect to the toolbar | JSX.Element | no | iOS,Android | yes |
| opacity | A value for container opacity in hexadecimal format (e.g. `ff`). Default value is `ff` | HEX | no | iOS,Android | yes |
-| onNextCallback?: () => void |A callback that is called when the user presses the next button along with the default action | function | no | iOS,Android | no |
-| onPrevCallback?: () => void | A callback that is called when the user presses the previous button along with the default action | function | no | iOS,Android | no |
-| onDoneCallback?: () => void | A callback that is called when the user presses the done button along with the default action | function | no | iOS,Android | yes |
+| onNextCallback?: () => void | A callback that is called when the user presses the next button along with the default action | function | no | iOS,Android | no |
+| onPrevCallback?: () => void | A callback that is called when the user presses the previous button along with the default action | function | no | iOS,Android | no |
+| onDoneCallback?: () => void | A callback that is called when the user presses the done button along with the default action | function | no | iOS,Android | yes |
## Known Issues
-- [ ] 暂不支持KeyboardControllerView中onKeyboardMoveStart,onKeyboardMove,onKeyboardMoveInteractive和KeyboardEvents中keyboardWillShow、keyboardWillHide键盘事件的回调:[ issue#1 ](https://github.com/react-native-oh-library/react-native-keyboard-controller/issues/1)
-- [ ] 暂不支持KeyboardGestureArea组件:[issue#2 ](https://github.com/react-native-oh-library/react-native-keyboard-controller/issues/2)
-- [ ] 暂不支持hook方法useReanimatedFocusedInput,KeyboardController中setFocusTo,KeyboardControllerView中onFocusedInputLayoutChanged、onFocusedInputSelectionChanged,FocusedInputEvents中focusDidSet,KeyboardToolbar中onNextCallback、onPrevCallback关于输入框聚焦的监听方法回调:[issue#3 ](https://github.com/react-native-oh-library/react-native-keyboard-controller/issues/3)
-- [ ] 暂不支持KeyboardAwareScrollView组件属性bottomOffset、enabled、disableScrollOnKeyboardHide、extraKeyboardSpace的设置[#issue#16](https://github.com/react-native-oh-library/react-native-keyboard-controller/issues/16)
-- [ ] KeyboardAvoidingView属性behavior支持position, 不支持高度height、padding的样式[#issue#13](https://github.com/react-native-oh-library/react-native-harmony-reanimated/issues/13)
+- [ ] onKeyboardMoveStart, onKeyboardMove, and onKeyboardMoveInteractive in KeyboardControllerView and keyboardWillShow and keyboardWillHide in KeyboardEvents are not supported: [ issue#1 ](https://github.com/react-native-oh-library/react-native-keyboard-controller/issues/1)
+- [ ] KeyboardGestureArea is not supported: [issue#2 ](https://github.com/react-native-oh-library/react-native-keyboard-controller/issues/2)
+- [ ] The HarmonyOS SDK does not support the hook method useReanimatedFocusedInput, nor does it support the focus-related methods and callbacks such as setFocusTo in KeyboardController, onFocusedInputLayoutChanged and onFocusedInputSelectionChanged in KeyboardControllerView, focusDidSet in FocusedInputEvents, and onNextCallback and onPrevCallback in KeyboardToolbar for text input box focus event listening: [issue#3 ](https://github.com/react-native-oh-library/react-native-keyboard-controller/issues/3)
+- [ ] The bottomOffset, enabled, disableScrollOnKeyboardHide, and extraKeyboardSpace properties of the KeyboardAwareScrollView component cannot be set: [#issue#16](https://github.com/react-native-oh-library/react-native-keyboard-controller/issues/16)
+- [ ] The behavior property of KeyboardAvoidingView supports position, but does not support style properties like height or padding: [#issue#13](https://github.com/react-native-oh-library/react-native-harmony-reanimated/issues/13)
## Others
--
Gitee
From 098bef0a90547c7ef24ae477c3032be4f805cfd4 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:59:49 +0800
Subject: [PATCH 31/40] docs: [Issues: #IBDWTP] react-native-lightbox.md
---
en/react-native-lightbox.md | 70 ++++++++++++++++++-------------------
1 file changed, 35 insertions(+), 35 deletions(-)
diff --git a/en/react-native-lightbox.md b/en/react-native-lightbox.md
index 51119e4f..4d8afb13 100644
--- a/en/react-native-lightbox.md
+++ b/en/react-native-lightbox.md
@@ -165,44 +165,44 @@ const styles = StyleSheet.create({
This document is verified based on the following versions:
1. RNOH: 0.72.20; SDK: HarmonyOS NEXT Developer Beta1; IDE: DevEco Studio 5.0.3.200; ROM: 3.0.0.18;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71 (API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
## Properties
-> [!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.
-
-该库为 UI 组件库,通过配置属性标签,实现对应的功能。
-
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------- | -------- | -------- | ----------------- |
-| **`activeProps`** | 可选属性,在 lightbox 模式下应用于内容组件, 可用于应用自定义样式或更高分辨率的图源。 | `object` | no | all | yes |
-| **`renderHeader(close)`** | 自定义 header,用于替换默认的 X 按钮 | `function` | no | all | yes |
-| **`renderContent`** | 自定义 lightbox 内容,用于替换默认的子内容 | `function` | no | all | yes |
-| **`willClose`** | lightbox 关闭前触发 | `function` | no | all | yes |
-| **`onClose`** | lightbox 关闭时触发 | `function` | no | all | yes |
-| **`onOpen`** | lightbox 打开时触发 | `function` | no | all | yes |
-| **`didOpen`** | lightbox 打开后触发 | `function` | no | all | yes |
-| **`onLongPress`** | lightbox 长按时触发 | `function` | no | all | yes |
-| **`onLayout`** | lightbox 布局完成后触发 | `function` | no | all | yes |
-| **`doubleTapCallback`** | lightbox 双击时触发 | `function` | no | all | yes |
-| **`doubleTapZoomEnabled`** | 开启双击缩放功能 , 默认为 `true` | `boolean` | no | all | yes |
-| **`doubleTapGapTimer`** | 确定双击的时间间隔,默认为 `500ms` | `number` | no | all | yes |
-| **`longPressGapTimer`** | 确定长按的的时间间隔,默认为 `2000ms` | `number` | no | all | yes |
-| **`longPressCallback`** | 内容长按后触发 | `function` | no | all | yes |
-| **`doubleTapZoomToCenter`** | 双击时缩放到中间 | `boolean` | no | all | yes |
-| **`doubleTapMaxZoom`** | 最大放大系数,默认为 `2` | `number` | no | all | yes |
-| **`doubleTapZoomStep`** | 每次双击的缩放比例,默认为 `0.5` | `number` | no | all | yes |
-| **`underlayColor`** | 可触摸背景的颜色,默认为 `black` | `string` | no | all | yes |
-| **`backgroundColor`** | lightbox 背景颜色,默认为 `black` | `string` | no | all | yes |
-| **`swipeToDismiss`** | 启用手势以通过向上或向下轻扫来取消全屏模式,默认为 `true` | `bool` | no | all | yes |
-| **`disabled`** | 禁用 lightbox。默认为 `false` | `bool` | no | all | yes |
-| **`style`** | lightbox 视图包装器的样式 | `object` | no | all | yes |
-| **`dragDismissThreshold`** | 滑动退出的阈值距离,默认为 `150` | `number` | no | all | yes |
-| **`modalProps`** | 任何其他你需要的 modal 属性,默认为 `{}` | `object` | no | all | yes |
-| **`useNativeDriver`** | 是否使用本机驱动程序,默认为 `false` | `bool` | no | all | yes |
-| **`springConfig`** | [`Animated.spring`](https://facebook.github.io/react-native/docs/animations.html) 配置, 默认为 `{ tension: 30, friction: 7 }`。 | `object` | no | all | yes |
+> [!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.
+
+This library is a UI component library. You can configure properties to implement corresponding functionalities.
+
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------------- | ------------------------------------------------------------ | ---------- | -------- | -------- | ----------------- |
+| **`activeProps`** | (Optional) Applies to the content component in lightbox mode. It can be used to apply a custom style or a higher-resolution image source.| `object` | no | all | yes |
+| **`renderHeader(close)`** | Sets the custom header, which is used to replace the default X button. | `function` | no | all | yes |
+| **`renderContent`** | Sets the custom lightbox content, which is used to replace the default subcontent. | `function` | no | all | yes |
+| **`willClose`** | Triggered before the lightbox is closed. | `function` | no | all | yes |
+| **`onClose`** | Triggered when the lightbox is closed. | `function` | no | all | yes |
+| **`onOpen`** | Triggered when the lightbox is opened. | `function` | no | all | yes |
+| **`didOpen`** | Triggered after the lightbox is opened. | `function` | no | all | yes |
+| **`onLongPress`** | Triggered when the lightbox is long pressed. | `function` | no | all | yes |
+| **`onLayout`** | Triggered after the lightbox layout is complete. | `function` | no | all | yes |
+| **`doubleTapCallback`** | Triggered when the lightbox is double-tapped. | `function` | no | all | yes |
+| **`doubleTapZoomEnabled`** | Sets whether to enable zooming through double-tap. The default value is `true`. | `boolean` | no | all | yes |
+| **`doubleTapGapTimer`** | Sets the double-tap time gap. The default value is `500 ms`. | `number` | no | all | yes |
+| **`longPressGapTimer`** | Sets the time gap for long press. The default value is `2000 ms`. | `number` | no | all | yes |
+| **`longPressCallback`** | Triggered after the content is long pressed. | `function` | no | all | yes |
+| **`doubleTapZoomToCenter`** | Zooms in the view to the center through double-tap. | `boolean` | no | all | yes |
+| **`doubleTapMaxZoom`** | The maximum amplification coefficient. The default value is `2`. | `number` | no | all | yes |
+| **`doubleTapZoomStep`** | Zoom ratio of each double-tap. The default value is `0.5`. | `number` | no | all | yes |
+| **`underlayColor`** | Touchable background color. The default value is `black`. | `string` | no | all | yes |
+| **`backgroundColor`** | The lightbox background color. The default value is `black`. | `string` | no | all | yes |
+| **`swipeToDismiss`** | Enables gestures to cancel full-screen mode by swiping up or down. The default value is `true`. | `bool` | no | all | yes |
+| **`disabled`** | Disables lightbox. The default value is `false`. | `bool` | no | all | yes |
+| **`style`** | Style of the lightbox view wrapper. | `object` | no | all | yes |
+| **`dragDismissThreshold`** | Threshold distance for swiping to exit. The default value is `150`. | `number` | no | all | yes |
+| **`modalProps`** | Modal property. The default value is `{}`. | `object` | no | all | yes |
+| **`useNativeDriver`** | Whether to use the local driver. The default value is `false`. | `bool` | no | all | yes |
+| **`springConfig`** | [`Animated.spring`](https://facebook.github.io/react-native/docs/animations.html) configuration. The default value is `{ tension: 30, friction: 7 }`.| `object` | no | all | yes |
## Known Issues
--
Gitee
From 277e980036a4bdf2390dd8439becef8c379c8efb Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 09:59:58 +0800
Subject: [PATCH 32/40] docs: [Issues: #IBDWTP] react-native-marquee-ab.md
---
en/react-native-marquee-ab.md | 60 +++++++++++++++++------------------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/en/react-native-marquee-ab.md b/en/react-native-marquee-ab.md
index 3544a704..e62b3b13 100644
--- a/en/react-native-marquee-ab.md
+++ b/en/react-native-marquee-ab.md
@@ -88,7 +88,7 @@ export default class TestPage extends Component {
This document is verified based on the following versions:
1. RNOH: 0.72.29; SDK: HarmonyOS NEXT Developer Beta6; IDE: DevEco Studio 5.0.3.706; ROM: NEXT.0.0.65;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71 (API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
## Properties
@@ -100,46 +100,46 @@ This document is verified based on the following versions:
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---------------- | ------------------------------------------------- | -------------- | -------- | ----------- | ----------------- |
-| duration | 执行完成整个动画所需要的时间(ms)不常用 | number | yes | iOS/Android | yes |
-| speed | 平均的滚动速度,跑马灯使用这个属性(建议传入 60) | number | no | iOS/Android | yes |
-| textList | 滚动的文字数组,具体数据格式请参照 textList.item | array | yes | iOS/Android | yes |
-| width | 宽度,不能使用 flex | number | yes | iOS/Android | yes |
-| height | 高度,不能使用 flex | number | yes | iOS/Android | yes |
-| direction | 动画方向(向左向右滚动)`left` or `right` | string | yes | iOS/Android | yes |
-| reverse | 是否将整个文本数据倒叙显示 | boolean | yes | iOS/Android | yes |
-| separator | 两个 item 之间的间隙 | number | yes | iOS/Android | yes |
-| bgContainerStyle | 背景样式 | object | no | iOS/Android | yes |
-| textStyle | 文本样式 | object | no | iOS/Android | yes |
-| onTextClick | 点击事件回调 | (item) => void | yes | iOS/Android | yes |
+| duration | Time (ms) required to complete the entire animation. It is not commonly used. | number | yes | iOS/Android | yes |
+| speed | Average scrolling speed. This property is used for marquee (**60** is recommended).| number | no | iOS/Android | yes |
+| textList | Scrolling text array. For details about the data format, see textList.item. | array | yes | iOS/Android | yes |
+| width | Width. Flex is not allowed. | number | yes | iOS/Android | yes |
+| height | Height. Flex is not allowed. | number | yes | iOS/Android | yes |
+| direction | Animation scrolling direction, `left` or `right`. | string | yes | iOS/Android | yes |
+| reverse | Whether to display the entire text data in reverse order. | boolean | yes | iOS/Android | yes |
+| separator | Separator between two items. | number | yes | iOS/Android | yes |
+| bgContainerStyle | Background style. | object | no | iOS/Android | yes |
+| textStyle | Text style. | object | no | iOS/Android | yes |
+| onTextClick | Callback for the click event. | (item) => void | yes | iOS/Android | yes |
**MarqueeVertical props**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---------------- | ---------------------------------------------------------------------------------------------------- | -------------- | -------- | ----------- | ----------------- |
-| duration | 执行完成整个动画所需要的时间(ms) | number | yes | iOS/Android | yes |
-| textList | 滚动的文字数组,具体数据格式请参照 textList.item | array | yes | iOS/Android | yes |
-| width | 宽度,不能使用 flex | number | no | iOS/Android | yes |
-| height | 高度,不能使用 flex | number | no | iOS/Android | yes |
-| delay | 文本停顿时间(ms) | number | yes | iOS/Android | yes |
-| direction | 动画方向(向上向下滚动)`up` or `down` | string | yes | iOS/Android | yes |
-| numberOfLines | 同一个数据的文本行数 | number | yes | iOS/Android | yes |
-| headViews | 在文本最前面加上一个自定义 view,效果如图例所示,用法请参照事例用法,length 长度与 textList 必须一致 | array | no | iOS/Android | yes |
-| viewStyle | 每一行文本的样式 | object | yes | iOS/Android | yes |
-| bgContainerStyle | 背景样式 | object | no | iOS/Android | yes |
-| textStyle | 文本样式 | object | no | iOS/Android | yes |
-| onTextClick | 点击事件回调 | (item) => void | yes | iOS/Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------- | ------------------------------------------------------------ | -------------- | -------- | ----------- | ----------------- |
+| duration | Time required to complete the entire animation (ms). | number | yes | iOS/Android | yes |
+| textList | Scrolling text array. For details about the data format, see textList.item. | array | yes | iOS/Android | yes |
+| width | Width. Flex is not allowed. | number | no | iOS/Android | yes |
+| height | Height. Flex is not allowed. | number | no | iOS/Android | yes |
+| delay | Text delay (ms). | number | yes | iOS/Android | yes |
+| direction | Animation scrolling direction, `up` or `down`. | string | yes | iOS/Android | yes |
+| numberOfLines | Number of text lines of the same data. | number | yes | iOS/Android | yes |
+| headViews | Adds a custom view at the beginning of the text. The effect and usage are shown in the example. The length must be the same as that of textList.| array | no | iOS/Android | yes |
+| viewStyle | Style of each line of text. | object | yes | iOS/Android | yes |
+| bgContainerStyle | Background style. | object | no | iOS/Android | yes |
+| textStyle | Text style. | object | no | iOS/Android | yes |
+| onTextClick | Callback for the click event. | (item) => void | yes | iOS/Android | yes |
**textList.item props**
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| -------- | -------------------------------- | -------- | -------- | ----------- | ----------------- |
-| label | 用作点击事件的回调 | string | yes | iOS/Android | yes |
-| value | 文本显示 | string | yes | iOS/Android | yes |
-| [object] | 可随意添加数据供自己特殊需求使用 | [object] | no | iOS/Android | yes |
+| label | Callback for the click event. | string | yes | iOS/Android | yes |
+| value | Text display. | string | yes | iOS/Android | yes |
+| [object] | Data can be added for special use.| [object] | no | iOS/Android | yes |
## Known Issues
-- [ ] MarqueeHorizontal 的 reverse 属性在 HarmonyOS 上只有第一次修改会触发生效,而原库在 iOS 上该属性已经失效。未实现 HarmonyOS 化 问题[issue#58](https://github.com/ZhangTaoK/react-native-marquee-ab/issues/58)
+- [ ] The reverse property of MarqueeHorizontal takes effect only when it is modified for the first time in HarmonyOS. However, this property in the original third-party library is invalid in iOS and not compatible. [issue#58](https://github.com/ZhangTaoK/react-native-marquee-ab/issues/58).
## Others
--
Gitee
From 64146909b2910e947b4a043b988621e5c823eaf6 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 10:00:08 +0800
Subject: [PATCH 33/40] docs: [Issues: #IBDWTP] react-native-mlkit-ocr.md
---
en/react-native-mlkit-ocr.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/en/react-native-mlkit-ocr.md b/en/react-native-mlkit-ocr.md
index cae9a349..963a8d96 100644
--- a/en/react-native-mlkit-ocr.md
+++ b/en/react-native-mlkit-ocr.md
@@ -16,7 +16,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-mlkit-ocr Releases](https://github.com/react-native-oh-library/react-native-mlkit-ocr/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-mlkit-ocr Releases](https://github.com/react-native-oh-library/react-native-mlkit-ocr/releases). 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.
Go to the project directory and execute the following instruction:
@@ -260,7 +260,7 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
### 5. Permission Requirements
-> [!TIP] "ohos.permission.INTERNET"权限等级为normal,授权方式为system_grant,[使用 ACL 签名的配置指导](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/signing-0000001587684945-V3#section157591551175916)
+> [!TIP] The permission level of **ohos.permission.INTERNET** is **normal**, and the authorization mode is **system_grant**. For details, see [Requesting ACL Permissions](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V2/signing-0000001587684945-V2#section157591551175916).
Add configuration to `YourProject/entry/src/main/module.json5`
@@ -310,8 +310,8 @@ Check the release version information in the release address of the third-party
| NAME | Description | TYPE | Required | Platform | HarmonyOS Support |
| -------------------- | ---------------- | -------- | -------- | -------- | ----------------- |
-| detectFromUri(uri) | 传入网络图片地址 | Function | Yes | All | Yes |
-| detectFromFile(path) | 传入本地图片地址 | Function | Yes | All | Yes |
+| detectFromUri(uri) | Passes the address of an online image.| Function | Yes | All | Yes |
+| detectFromFile(path) | Passes the path of a local image.| Function | Yes | All | Yes |
## Known Issues
@@ -319,4 +319,4 @@ Check the release version information in the release address of the third-party
## License
-This project is licensed under [The MIT License (MIT)](https://github.com/agoldis/react-native-mlkit-ocr/blob/main/LICENSE).
+This project is licensed under [MIT License](https://github.com/agoldis/react-native-mlkit-ocr/blob/main/LICENSE).
--
Gitee
From 19b7759443d2f1bbda316ba6fbba0622364291ea Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 10:00:17 +0800
Subject: [PATCH 34/40] docs: [Issues: #IBDWTP] react-native-multi-slider.md
---
en/react-native-multi-slider.md | 110 ++++++++++++++++----------------
1 file changed, 55 insertions(+), 55 deletions(-)
diff --git a/en/react-native-multi-slider.md b/en/react-native-multi-slider.md
index c16bfc28..bcd6d551 100644
--- a/en/react-native-multi-slider.md
+++ b/en/react-native-multi-slider.md
@@ -17,7 +17,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-multi-slider Releases](https://github.com/react-native-oh-library/react-native-multi-slider/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-multi-slider Releases](https://github.com/react-native-oh-library/react-native-multi-slider/releases). 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.
Go to the project directory and execute the following instruction:
@@ -215,7 +215,7 @@ export default function MultiSliderDemo() {
- sliderLength(Slide length{100})
+ sliderLength (Slide length{100})
@@ -531,59 +531,59 @@ This document is verified based on the following versions:
## Properties
-> [!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.Known Issues
-
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | -------- | -------- | ----------------- |
-| values | Prefixed values of the slider. | array of numbers | NO | All | YES |
-| onValuesChangeStart | Callback when the value starts changing | function | NO | All | YES |
-| onValuesChange | Callback when the value changes | function | NO | All | YES |
-| onValuesChangeFinish | Callback when the value stops changing | function | NO | All | YES |
-| sliderLength | Length of the slider | number | NO | All | YES |
-| touchDimensions | Defines the size of the touch area of the slider | object | NO | All | YES |
-| enableLabel | Enable the label rendering | function | NO | All | YES |
-| customLabel | Component used for rendering a label above the cursors. | function | NO | All | YES |
-| customMarker | Component used for the cursor. | function | NO | All | YES |
-| customMarkerLeft | Component used for the left cursor. | function | NO | All | YES |
-| customMarkerRight | Component used for the right cursor. | function | NO | All | YES |
-| isMarkersSeparated | Enable custom left and right cursors | boolean | NO | All | YES |
-| min | Minimum value available in the slider. | number | NO | All | YES |
-| max | Maximum value available in the slider. | number | NO | All | YES |
-| step | Step value of the slider. | number | NO | All | YES |
-| optionsArray | Possible values of the slider. Ignores min and max. | array of numbers | NO | All | YES |
-| containerStyle | The style of the slider container | style object | NO | All | YES |
-| trackStyle | track Default Style | style object | NO | All | YES |
-| selectedStyle | Style after track sliding | style object | NO | All | YES |
-| unselectedStyle | Style when the track is not sliding | style object | NO | All | YES |
-| markerContainerStyle | Marker container style | style object | NO | All | YES |
-| markerStyle | Marker style | style object | NO | All | YES |
-| pressedMarkerStyle | Marker style after touch | style object | NO | All | YES |
-| stepStyle | Step style | style object | NO | - | YES |
-| stepLabelStyle | Step lable style | style object | NO | - | YES |
-| stepMarkerStyle | Step marker style | style object | NO | - | YES |
-| valuePrefix | Prefix added to the value. | string | NO | All | YES |
-| valueSuffix | Suffix added to the value. | string | NO | All | YES |
-| enabledOne | Enables the first cursor | boolean | NO | All | YES |
-| enabledTwo | Enables the second cursor | boolean | NO | All | YES |
-| stepsAs | Use stepsAs when you want to customize the steps-labels. stepsAs expects an array of objects [{index: number, stepLabel: string, prefix: string, suffix: string}]. Where index is for which step you want to customize, and all the other steps will show its index as its stepLabel. Both showSteps and showStepsLabels has to be enabled for stepsAs to be used. | array of objects | NO | All | YES |
-| showSteps | Show steps | boolean | NO | All | YES |
-| showStepMarkers | Show steps-markers on the track, showSteps has to be enabled as well | boolean | NO | All | YES |
-| showStepLabels | Show steps-labels underneath the track, showSteps has to be enabled as well | boolean | NO | All | YES |
-| onToggleOne | Listener when first cursor toggles. | function callback | NO | All | YES |
-| onToggleTwo | Listener when second cursor toggles. | function callback | NO | All | YES |
-| allowOverlap | Allow the overlap within the cursors. | boolean | NO | All | YES |
-| snapped | Use this when you want a fixed position for your markers, this will split the slider in N specific positions | boolean | NO | All | YES |
-| smoothSnapped | Same as snapped but you can move the slider as usual. When released it will go to the nearest marker | boolean | NO | All | YES |
-| vertical | Use vertical orientation instead of horizontal. | boolean | NO | All | YES |
-| markerOffsetX | Offset first cursor. | number | NO | All | YES |
-| markerOffsetY | Offset second cursor. | number | NO | All | YES |
-| markerSize | It determines the marker margin from the edges of the track, useful to avoid the markers to overflow out of the track. | number | NO | All | YES |
-| minMarkerOverlapDistance | if this is > 0 and allowOverlap is false, this value will determine the closest two markers can come to each other. This can be used for cases where you have two markers large cursors and you don't want them to overlap. Note that markers will still overlap at the start if starting values are too near. | number | NO | All | YES |
+> [!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.Known Issues
+
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------------------- | ------------------------------------------------------------ | ----------------- | -------- | -------- | ----------------- |
+| values | Prefixed values of the slider. | array of numbers | NO | All | YES |
+| onValuesChangeStart | Callback when the value starts changing | function | NO | All | YES |
+| onValuesChange | Callback when the value changes | function | NO | All | YES |
+| onValuesChangeFinish | Callback when the value stops changing | function | NO | All | YES |
+| sliderLength | Length of the slider | number | NO | All | YES |
+| touchDimensions | Defines the size of the touch area of the slider | object | NO | All | YES |
+| enableLabel | Enable the label rendering | function | NO | All | YES |
+| customLabel | Component used for rendering a label above the cursors. | function | NO | All | YES |
+| customMarker | Component used for the cursor. | function | NO | All | YES |
+| customMarkerLeft | Component used for the left cursor. | function | NO | All | YES |
+| customMarkerRight | Component used for the right cursor. | function | NO | All | YES |
+| isMarkersSeparated | Enable custom left and right cursors | boolean | NO | All | YES |
+| min | Minimum value available in the slider. | number | NO | All | YES |
+| max | Maximum value available in the slider. | number | NO | All | YES |
+| step | Step value of the slider. | number | NO | All | YES |
+| optionsArray | Possible values of the slider. Ignores min and max. | array of numbers | NO | All | YES |
+| containerStyle | The style of the slider container | style object | NO | All | YES |
+| trackStyle | track Default Style | style object | NO | All | YES |
+| selectedStyle | Style after track sliding | style object | NO | All | YES |
+| unselectedStyle | Style when the track is not sliding | style object | NO | All | YES |
+| markerContainerStyle | Marker container style | style object | NO | All | YES |
+| markerStyle | Marker style | style object | NO | All | YES |
+| pressedMarkerStyle | Marker style after touch | style object | NO | All | YES |
+| stepStyle | Step style | style object | NO | - | YES |
+| stepLabelStyle | Step lable style | style object | NO | - | YES |
+| stepMarkerStyle | Step marker style | style object | NO | - | YES |
+| valuePrefix | Prefix added to the value. | string | NO | All | YES |
+| valueSuffix | Suffix added to the value. | string | NO | All | YES |
+| enabledOne | Enables the first cursor | boolean | NO | All | YES |
+| enabledTwo | Enables the second cursor | boolean | NO | All | YES |
+| stepsAs | Use stepsAs when you want to customize the steps-labels. stepsAs expects an array of objects [{index: number, stepLabel: string, prefix: string, suffix: string}]. Where index is for which step you want to customize, and all the other steps will show its index as its stepLabel. Both showSteps and showStepsLabels has to be enabled for stepsAs to be used. | array of objects | NO | All | YES |
+| showSteps | Show steps | boolean | NO | All | YES |
+| showStepMarkers | Show steps-markers on the track, showSteps has to be enabled as well | boolean | NO | All | YES |
+| showStepLabels | Show steps-labels underneath the track, showSteps has to be enabled as well | boolean | NO | All | YES |
+| onToggleOne | Listener when first cursor toggles. | function callback | NO | All | YES |
+| onToggleTwo | Listener when second cursor toggles. | function callback | NO | All | YES |
+| allowOverlap | Allow the overlap within the cursors. | boolean | NO | All | YES |
+| snapped | Use this when you want a fixed position for your markers, this will split the slider in N specific positions | boolean | NO | All | YES |
+| smoothSnapped | Same as snapped but you can move the slider as usual. When released it will go to the nearest marker | boolean | NO | All | YES |
+| vertical | Use vertical orientation instead of horizontal. | boolean | NO | All | YES |
+| markerOffsetX | Offset first cursor. | number | NO | All | YES |
+| markerOffsetY | Offset second cursor. | number | NO | All | YES |
+| markerSize | It determines the marker margin from the edges of the track, useful to avoid the markers to overflow out of the track. | number | NO | All | YES |
+| minMarkerOverlapDistance | if this is > 0 and allowOverlap is false, this value will determine the closest two markers can come to each other. This can be used for cases where you have two markers large cursors and you don't want them to overlap. Note that markers will still overlap at the start if starting values are too near. | number | NO | All | YES |
| minMarkerOverlapStepDistance | if this is > 0 and allowOverlap is false, this value will determine the closest two markers can come to each other (in steps, not pixels). This can be used for cases where you have two markers large cursors and you don't want them to overlap. Note that markers will still overlap at the start if starting values are too near. CANNOT be combined with minMarkerOverlapDistance | number | NO | All | YES |
-| imageBackgroundSource | Specifies the source required for the ImageBackground | string | NO | All | YES |
-| testID | Used to locate this view in end-to-end tests | string | NO | All | YES |
+| imageBackgroundSource | Specifies the source required for the ImageBackground | string | NO | All | YES |
+| testID | Used to locate this view in end-to-end tests | string | NO | All | YES |
## Known Issues
@@ -591,4 +591,4 @@ This document is verified based on the following versions:
## License
-This project is licensed under[The MIT License (MIT)](https://github.com/ptomasroos/react-native-multi-slider/blob/master/LICENSE),请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/ptomasroos/react-native-multi-slider/blob/master/LICENSE).
--
Gitee
From e70a0151c94d7bc440713047acdf3bafffabe42b Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 10:00:27 +0800
Subject: [PATCH 35/40] docs: [Issues: #IBDWTP] react-native-nfc-manager.md
---
en/react-native-nfc-manager.md | 312 ++++++++++++++++-----------------
1 file changed, 156 insertions(+), 156 deletions(-)
diff --git a/en/react-native-nfc-manager.md b/en/react-native-nfc-manager.md
index d1ccada7..daa8e640 100644
--- a/en/react-native-nfc-manager.md
+++ b/en/react-native-nfc-manager.md
@@ -84,7 +84,7 @@ export default App;
## Use Codegen
-If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/zh-cn/codegen.md).
+If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/en/codegen.md).
## Link
@@ -102,13 +102,13 @@ Adding the overrides Field to oh-package.json5 File in the Root Directory of the
}
```
-## 配置 Entry
+## Configuring an Entry
-本库主要用于操作及管理 NFC Tag,提供后台读卡和前台应用优先分发两种读卡模式。后台读卡是指不需要打开应用程序,电子设备通过 NFC 读取标签卡片后,根据标签卡片的类型匹配到一个或多个应用程序。如果仅匹配到一个,则直接拉起应用程序的读卡页面;如果是多个则弹出应用选择器,让用户选择指定的读卡应用。前台读卡是指提前打开应用程序,并进入对应的 NFC 读卡页面后读卡,只会把读到的标签卡片信息分发给前台应用程序。
+The **tag** module provides APIs for operating and managing NFC tags. The following tag read modes are available: Background mode: The device reads the tag by using NFC without starting any application, and then searches for applications based on the tag type. If only one application is matched, the card reading page of that application will be started. If multiple applications are matched, an application selector will be started, asking the user to select an application. Foreground mode: A foreground application has priority to read the NFC tag discovered.
-### 后台读卡方式的声明
+### Declaring the NFC Tag Background Mode
-**1.应用程序需要支持后台读卡时,需要在应用的属性配置文件中,声明与 NFC 相关的属性值。比如,在 entry/src/main/module.json5 文件中,声明下面属性值: **
+*1. To enable NFC tags to be read without starting an application, declare NFC-related attributes in the **entry/src/main/module.json5** file: *
```
{
@@ -149,7 +149,7 @@ Adding the overrides Field to oh-package.json5 File in the Root Directory of the
}
```
-**2.在对相关 Tag 类型卡片进行读写之前,必须先获取 TagInfo 相关属性值,以确认设备读取到的 Tag 卡片支持哪些技术类型。可以将以下内容添加到 EntryAbility**
+2. Before a card with tags is read or written, **TagInfo** must be obtained to determine the tag technologies supported by the card. You can add the following content to **EntryAbility**:
```tsx
import { RNAbility } from "rnoh";
@@ -215,7 +215,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
### 3. Introducing RNNfcManagerPackage to ArkTS
@@ -271,204 +271,204 @@ Open the `entry/src/main/module.json5` file and add the following code:
> [!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 |
-| ---------------- | --------------------------------------------------------------------------------------------- | ------------ | -------- | ----------- | ----------------- |
-| Ndef | NFC A type Tag object, through which the Ndef technology type Tag can be accessed | Technologies | no | iOS/Android | yes |
-| NfcA | NFC A type Tag object, through which the NfcA technology type Tag can be accessed | Technologies | no | iOS/Android | yes |
-| IsoDep | NFC A type Tag object, through which the IsoDep technology type Tag can be accessed | Technologies | no | iOS/Android | yes |
-| NfcF | NFC A type Tag object, through which the NfcF technology type Tag can be accessed | Technologies | no | Android | yes |
-| NfcV | NFC A type Tag object, through which the NfcV technology type Tag can be accessed | Technologies | no | Android | yes |
-| NfcB | NFC A type Tag object, through which the NfcB technology type Tag can be accessed | Technologies | no | Android | yes |
-| MifareClassic | NFC A type Tag object, through which the MifareClassic technology type Tag can be accessed | Technologies | no | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------- | ------------------------------------------------------------ | ------------ | -------- | ----------- | ----------------- |
+| Ndef | NFC A type Tag object, through which the Ndef technology type Tag can be accessed | Technologies | no | iOS/Android | yes |
+| NfcA | NFC A type Tag object, through which the NfcA technology type Tag can be accessed | Technologies | no | iOS/Android | yes |
+| IsoDep | NFC A type Tag object, through which the IsoDep technology type Tag can be accessed | Technologies | no | iOS/Android | yes |
+| NfcF | NFC A type Tag object, through which the NfcF technology type Tag can be accessed | Technologies | no | Android | yes |
+| NfcV | NFC A type Tag object, through which the NfcV technology type Tag can be accessed | Technologies | no | Android | yes |
+| NfcB | NFC A type Tag object, through which the NfcB technology type Tag can be accessed | Technologies | no | Android | yes |
+| MifareClassic | NFC A type Tag object, through which the MifareClassic technology type Tag can be accessed | Technologies | no | Android | yes |
| MifareUltralight | NFC A type Tag object, through which the MifareUltralight technology type Tag can be accessed | Technologies | no | Android | yes |
-| MifareIOS | NFC A type Tag object, through which the MifareIOS technology type Tag can be accessed | Technologies | no | iOS | no |
-| iso15693 | NFC A type Tag object, through which the iso15693 technology type Tag can be accessed | Technologies | no | iOS | no |
-| felica | NFC A type Tag object, through which the felica technology type Tag can be accessed | Technologies | no | iOS | no |
-| NdefFormatable | NFC A type Tag object, through which the NdefFormatable technology type Tag can be accessed | Technologies | no | Android | yes |
+| MifareIOS | NFC A type Tag object, through which the MifareIOS technology type Tag can be accessed | Technologies | no | iOS | no |
+| iso15693 | NFC A type Tag object, through which the iso15693 technology type Tag can be accessed | Technologies | no | iOS | no |
+| felica | NFC A type Tag object, through which the felica technology type Tag can be accessed | Technologies | no | iOS | no |
+| NdefFormatable | NFC A type Tag object, through which the NdefFormatable technology type Tag can be accessed | Technologies | no | Android | yes |
## API
-**common tech handler getters for both iOS / Android**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| start | Start nfc scan | function | NO | iOS / Android | yes |
-| isSupported | Does the device support nfc | function | NO | iOS / Android | yes |
-| isEnabled | Is the nfc switch turned on | function | NO | iOS / Android | yes |
-| registerTagEvent | Register to monitor NFC Tag card reading events to achieve priority distribution of front-end applications. Set the supported card reading technology type through discTech, and obtain the TagInfo information of the read Tag through the Callback method. | function | NO | iOS / Android | yes |
-| unregisterTagEvent | Cancel monitoring of NFC Tag card reading events | function | NO | iOS / Android | yes |
-| setEventListener | Set up monitoring | function | NO | iOS / Android | yes |
-| getBackgroundTag | Start nfc in the background and obtain the Tag data object provided by the NFC service when the Tag is distributed. | function | NO | iOS / Android | yes |
-| clearBackgroundTag | After starting nfc in the background, clear Tag information of different technology types | function | NO | iOS / Android | yes |
-| requestTechnology | Start scanning | function | NO | iOS / Android | yes |
-| cancelTechnologyRequest | Cancel scan | function | NO | iOS / Android | yes |
-| getTag | Get the Tag data object provided by the NFC service when the Tag is distributed | function | NO | iOS / Android | yes |
+**Common tech handler getters for both iOS and Android**
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------------------- | ------------------------------------------------------------ | -------- | -------- | ------------- | ----------------- |
+| start | Start nfc scan | function | NO | iOS/Android| yes |
+| isSupported | Does the device support nfc | function | NO | iOS/Android| yes |
+| isEnabled | Is the nfc switch turned on | function | NO | iOS/Android| yes |
+| registerTagEvent | Register to monitor NFC Tag card reading events to achieve priority distribution of front-end applications. Set the supported card reading technology type through discTech, and obtain the TagInfo information of the read Tag through the Callback method. | function | NO | iOS/Android| yes |
+| unregisterTagEvent | Cancel monitoring of NFC Tag card reading events | function | NO | iOS/Android| yes |
+| setEventListener | Set up monitoring | function | NO | iOS/Android| yes |
+| getBackgroundTag | Start nfc in the background and obtain the Tag data object provided by the NFC service when the Tag is distributed. | function | NO | iOS/Android| yes |
+| clearBackgroundTag | After starting nfc in the background, clear Tag information of different technology types | function | NO | iOS/Android| yes |
+| requestTechnology | Start scanning | function | NO | iOS/Android| yes |
+| cancelTechnologyRequest | Cancel scan | function | NO | iOS/Android| yes |
+| getTag | Get the Tag data object provided by the NFC service when the Tag is distributed | function | NO | iOS/Android| yes |
**NdefHandler**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| writeNdefMessage| Write NDEF Message data object to label | function | NO | Android | yes |
-| getNdefMessage| Get the Message read from the tag when the NDEF tag is found | function | NO | iOS / Android | yes |
-| makeReadOnly| Set NDEF tag to read-only | function | NO | iOS / Android | yes |
-| getNdefStatus| Check if the NDEF tag can be set to read-only and get the maximum data length that can be sent to the tag | function | NO | iOS / Android | yes |
-| getCachedNdefMessageAndroid| Get the Tag data object provided by the NFC service when the Tag is distributed | function | NO | iOS / Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------------- | ------------------------------------------------------------ | -------- | -------- | ------------- | ----------------- |
+| writeNdefMessage | Write NDEF Message data object to label | function | NO | Android | yes |
+| getNdefMessage | Get the Message read from the tag when the NDEF tag is found | function | NO | iOS/Android| yes |
+| makeReadOnly | Set NDEF tag to read-only | function | NO | iOS/Android| yes |
+| getNdefStatus | Check if the NDEF tag can be set to read-only and get the maximum data length that can be sent to the tag | function | NO | iOS/Android| yes |
+| getCachedNdefMessageAndroid | Get the Tag data object provided by the NFC service when the Tag is distributed | function | NO | iOS/Android| yes |
**NfcAHandler**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| transceive | Send instructions to Tag | function | NO | iOS / Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------- | ------------------------ | -------- | -------- | ------------- | ----------------- |
+| transceive | Send instructions to Tag | function | NO | iOS/Android| yes |
**IsoDepHandler**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| transceive | Send instructions to Tag | function | NO | iOS / Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------- | ------------------------ | -------- | -------- | ------------- | ----------------- |
+| transceive | Send instructions to Tag | function | NO | iOS/Android| yes |
**iOS only**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| setAlertMessage | Set a warning message for a certain session (possibly an NFC session or similar) | function | NO | iOS | NO |
-| getBackgroundNdef | Scan NFC tag from lock screen | function | NO | iOS | NO |
-| invalidateSessionIOS | Initialize tag session | function | NO | iOS | NO |
-| invalidateSessionWithErrorIOS | Initializing the tag session may throw an exception | function | NO | iOS | NO |
-| sendCommandAPDUIOS | Send specific APDU commands | function | NO | iOS | NO |
-| restartTechnologyRequestIOS | Restart NFC session | function | NO | iOS | NO |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------------------------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| setAlertMessage | Set a warning message for a certain session (possibly an NFC session or similar) | function | NO | iOS | NO |
+| getBackgroundNdef | Scan NFC tag from lock screen | function | NO | iOS | NO |
+| invalidateSessionIOS | Initialize tag session | function | NO | iOS | NO |
+| invalidateSessionWithErrorIOS | Initializing the tag session may throw an exception | function | NO | iOS | NO |
+| sendCommandAPDUIOS | Send specific APDU commands | function | NO | iOS | NO |
+| restartTechnologyRequestIOS | Restart NFC session | function | NO | iOS | NO |
**MifareIOS**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| sendMifareCommandIOS | Send specific MIFARE commands | function | NO | iOS | NO |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| -------------------- | ----------------------------- | -------- | -------- | -------- | ----------------- |
+| sendMifareCommandIOS | Send specific MIFARE commands | function | NO | iOS | NO |
**FelicaIOS**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| sendFelicaCommandIOS | Send specific Felica commands | function | NO | iOS | NO |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| -------------------- | ----------------------------- | -------- | -------- | -------- | ----------------- |
+| sendFelicaCommandIOS | Send specific Felica commands | function | NO | iOS | NO |
**Iso15693**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| getSystemInfo | Obtain system information of RFID tags | function | NO | iOS | NO |
-| readSingleBlock | Read the content stored in a block of tags | function | NO | iOS | NO |
-| readMultipleBlocks | Read the content stored in multiple blocks of the tag | function | NO | iOS | NO |
-| writeSingleBlock | Write content to a block in the tag storage | function | NO | iOS | NO |
-| lockBlock | Lock specific data blocks on tags | function | NO | iOS | NO |
-| writeAFI | Write the specified AFI value into the RFID tag | function | NO | iOS | NO |
-| lockAFI | Used to lock the AFI field in RFID tags to prevent it from being altered | function | NO | iOS | NO |
-| writeDSFID | Write the specified DSFID value into the RFID tag | function | NO | iOS | NO |
-| lockDSFID | Used to lock the AFI field in DSFID tags to prevent it from being altered | function | NO | iOS | NO |
-| resetToReady | Reset the RFID tag from the current state to the ready state, ready to receive new commands | function | NO | iOS | NO |
-| select | Place specific RFID tags in the selected state | function | NO | iOS | NO |
-| stayQuite | Put the tag into a quiet state, in which the tag will not respond to any requests with inventory_flag, but will respond to requests with addressing flags | function | NO | iOS | NO |
-| customCommand | Send custom binary data to RFID tags | function | NO | iOS | NO |
-| sendRequest | Send one or more commands or data requests to RFID tags | function | NO | iOS | NO |
-| extendedReadSingleBlock | Read the content of a specified single data block from an RFID tag | function | NO | iOS | NO |
-| extendedWriteSingleBlock | Write the content of a specified single data block from an RFID tag | function | NO | iOS | NO |
-| extendedLockBlock | Lock one or more data blocks in the RFID tag to prevent them from being further written or modified | function | NO | iOS | NO |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------ | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| getSystemInfo | Obtain system information of RFID tags | function | NO | iOS | NO |
+| readSingleBlock | Read the content stored in a block of tags | function | NO | iOS | NO |
+| readMultipleBlocks | Read the content stored in multiple blocks of the tag | function | NO | iOS | NO |
+| writeSingleBlock | Write content to a block in the tag storage | function | NO | iOS | NO |
+| lockBlock | Lock specific data blocks on tags | function | NO | iOS | NO |
+| writeAFI | Write the specified AFI value into the RFID tag | function | NO | iOS | NO |
+| lockAFI | Used to lock the AFI field in RFID tags to prevent it from being altered | function | NO | iOS | NO |
+| writeDSFID | Write the specified DSFID value into the RFID tag | function | NO | iOS | NO |
+| lockDSFID | Used to lock the AFI field in DSFID tags to prevent it from being altered | function | NO | iOS | NO |
+| resetToReady | Reset the RFID tag from the current state to the ready state, ready to receive new commands | function | NO | iOS | NO |
+| select | Place specific RFID tags in the selected state | function | NO | iOS | NO |
+| stayQuite | Put the tag into a quiet state, in which the tag will not respond to any requests with inventory_flag, but will respond to requests with addressing flags | function | NO | iOS | NO |
+| customCommand | Send custom binary data to RFID tags | function | NO | iOS | NO |
+| sendRequest | Send one or more commands or data requests to RFID tags | function | NO | iOS | NO |
+| extendedReadSingleBlock | Read the content of a specified single data block from an RFID tag | function | NO | iOS | NO |
+| extendedWriteSingleBlock | Write the content of a specified single data block from an RFID tag | function | NO | iOS | NO |
+| extendedLockBlock | Lock one or more data blocks in the RFID tag to prevent them from being further written or modified | function | NO | iOS | NO |
**Android only**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| goToNfcSetting | Guide users to the NFC settings interface of the device | function | NO | Android | yes |
-| getLaunchTagEvent | Retrieve events or data when an application is launched (or reactivated) due to NFC tag scanning | function | NO | Android | yes |
-| transceive | Send instructions to Tag | function | NO | Android | yes |
-| getMaxTransceiveLength | Query the maximum data length that can be sent to a label | function | NO | Android | yes |
-| setTimeout | Set the timeout for sending data to Tag | function | NO | Android | NO |
-| connect | Establish a connection with the tag | function | NO | Android | NO |
-| close | Close tag connection | function | NO | Android | NO |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| goToNfcSetting | Guide users to the NFC settings interface of the device | function | NO | Android | yes |
+| getLaunchTagEvent | Retrieve events or data when an application is launched (or reactivated) due to NFC tag scanning | function | NO | Android | yes |
+| transceive | Send instructions to Tag | function | NO | Android | yes |
+| getMaxTransceiveLength | Query the maximum data length that can be sent to a label | function | NO | Android | yes |
+| setTimeout | Set the timeout for sending data to Tag | function | NO | Android | yes |
+| connect | Establish a connection with the tag | function | NO | Android | yes |
+| close | Close tag connection | function | NO | Android | yes |
**NfcVHandler**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| transceive | Send instructions to Tag | function | NO | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------- | ------------------------ | -------- | -------- | -------- | ----------------- |
+| transceive | Send instructions to Tag | function | NO | Android | yes |
**MifareClassicHandlerAndroid**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| mifareClassicSectorToBlock | Obtain the sequence number of the first block in a specific sector | function | NO | Android | yes |
-| mifareClassicReadBlock | Read the content stored in a block of tags, with a block size of 16 bytes | function | NO | Android | yes |
-| mifareClassicWriteBlock | Write content to a block in the tag, with a block size of 16 bytes | function | NO | Android | yes |
-| mifareClassicIncrementBlock | Add the specified value to the content of the specified block and store the result in the internal transmission buffer | function | NO | Android | yes |
-| mifareClassicDecrementBlock | Reduce the specified value for the content of the specified block and store the result in an internal transfer buffer | function | NO | Android | yes |
-| mifareClassicTransferBlock | Transfer the value of the temporary register to the specified block | function | NO | Android | yes |
-| mifareClassicGetSectorCount | Get the number of sectors in the MIFARE Classic tag | function | NO | Android | yes |
-| mifareClassicAuthenticateA | Use a key to authenticate sectors, only sectors that have been successfully authenticated can perform operations, and the key type is A | function | NO | Android | yes |
-| mifareClassicAuthenticateB | Use a key to authenticate sectors, only sectors that have been successfully authenticated can perform operations, and the key type is B | function | NO | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| mifareClassicSectorToBlock | Obtain the sequence number of the first block in a specific sector | function | NO | Android | yes |
+| mifareClassicReadBlock | Read the content stored in a block of tags, with a block size of 16 bytes | function | NO | Android | yes |
+| mifareClassicWriteBlock | Write content to a block in the tag, with a block size of 16 bytes | function | NO | Android | yes |
+| mifareClassicIncrementBlock | Add the specified value to the content of the specified block and store the result in the internal transmission buffer | function | NO | Android | yes |
+| mifareClassicDecrementBlock | Reduce the specified value for the content of the specified block and store the result in an internal transfer buffer | function | NO | Android | yes |
+| mifareClassicTransferBlock | Transfer the value of the temporary register to the specified block | function | NO | Android | yes |
+| mifareClassicGetSectorCount | Get the number of sectors in the MIFARE Classic tag | function | NO | Android | yes |
+| mifareClassicAuthenticateA | Use a key to authenticate sectors, only sectors that have been successfully authenticated can perform operations, and the key type is A | function | NO | Android | yes |
+| mifareClassicAuthenticateB | Use a key to authenticate sectors, only sectors that have been successfully authenticated can perform operations, and the key type is B | function | NO | Android | yes |
**MifareUltralightHandlerAndroid**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| mifareUltralightReadPages | Read 4 pages of data from the tag, totaling 16 bytes of data. Each page has a data size of 4 bytes | function | NO | Android | yes |
-| mifareUltralightWritePage | Write one page of data with a size of 4 bytes | function | NO | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| mifareUltralightReadPages | Read 4 pages of data from the tag, totaling 16 bytes of data. Each page has a data size of 4 bytes | function | NO | Android | yes |
+| mifareUltralightWritePage | Write one page of data with a size of 4 bytes | function | NO | Android | yes |
**NdefFormatableHandlerAndroid**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| formatNdef | Format tags as NDEF tags and write NDEF messages into NDEF tags | function | NO | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| formatNdef | Format tags as NDEF tags and write NDEF messages into NDEF tags | function | NO | Android | yes |
## Properties
**RegisterTagEventOpts**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| alertMessage | Specify a warning or prompt message to be displayed when an NFC tag is read | string | NO | iOS | NO |
-| invalidateAfterFirstRead | NFC tags should be considered invalid after being read for the first time | boolean | NO | iOS | NO |
-| isReaderModeEnabled | This option is used to indicate whether NFC's' Reader Mode 'is enabled | boolean | NO | Android | yes |
-| readerModeFlags | This option allows you to specify the flag for the reader mode | number | NO | Android | yes |
-| readerModeDelay | This option allows you to specify how long to delay processing an NFC tag after it is detected | number | NO | Android | NO |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------ | ------------------------------------------------------------ | ------- | -------- | -------- | ----------------- |
+| alertMessage | Specify a warning or prompt message to be displayed when an NFC tag is read | string | NO | iOS | NO |
+| invalidateAfterFirstRead | NFC tags should be considered invalid after being read for the first time | boolean | NO | iOS | NO |
+| isReaderModeEnabled | This option is used to indicate whether NFC's' Reader Mode 'is enabled | boolean | NO | Android | yes |
+| readerModeFlags | This option allows you to specify the flag for the reader mode | number | NO | Android | yes |
+| readerModeDelay | This option allows you to specify how long to delay processing an NFC tag after it is detected | number | NO | Android | NO |
**NfcEvents**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| DiscoverTag | When the NFC Manager (NfcManager) detects and successfully reads an NFC tag, this event will be triggered | enum | NO | iOS/Android | yes |
-| DiscoverBackgroundTag | When the application is in the background, the NFC Manager (NfcManager) detects and successfully reads an NFC tag, triggering this event | enum | NO | iOS/Android | yes |
-| SessionClosed | Trigger this event when NFC session is closed | enum | NO | iOS | NO |
-| StateChanged | This event is triggered when the enabled state of NFC changes | enum | NO | iOS/Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------- | ------------------------------------------------------------ | ---- | -------- | ----------- | ----------------- |
+| DiscoverTag | When the NFC Manager (NfcManager) detects and successfully reads an NFC tag, this event will be triggered | enum | NO | iOS/Android | yes |
+| DiscoverBackgroundTag | When the application is in the background, the NFC Manager (NfcManager) detects and successfully reads an NFC tag, triggering this event | enum | NO | iOS/Android | yes |
+| SessionClosed | Trigger this event when NFC session is closed | enum | NO | iOS | NO |
+| StateChanged | This event is triggered when the enabled state of NFC changes | enum | NO | iOS/Android | yes |
**NfcTech**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| Ndef | NDEF (NFC Data Exchange Format) is a standard format used for storing and exchanging data on NFC tags | enum | no | iOS/Android | yes |
-| NfcA | NfcA stands for ISO 14443-3 Type A technology, which is a widely used NFC tag type that supports fast data transmission and high security | enum | no | iOS/Android | yes |
-| IsoDep | IsoDep represents the ISO/IEC 7816-4 standard, which defines the communication protocol between smart cards and readers | enum | no | iOS/Android | yes |
-| NfcF | NfcF stands for ISO 14443-4 Type F technology, which supports high-speed data transmission and more complex encryption functions | enum | no | Android | yes |
-| NfcV | NfcV stands for ISO 15693 technology, also known as VICC (Vicinity Integrated Circuit Card), mainly used for low-frequency NFC tags with a longer reading distance. | enum | no | Android | yes |
-| NfcB | NfcB stands for ISO 14443-3 Type B technology, similar to NfcA but with different physical characteristics and communication protocols. | enum | no | Android | yes |
-| MifareClassic | Mifare Classic is a popular NFC tag type produced by NXP Semiconductors (now renamed NXP), widely used in fields such as access control systems, bus cards, and payment applications | enum | no | Android | yes |
-| MifareUltralight | Mifare Ultralight is a low-cost NFC tag in the Mifare series, suitable for applications that require fast reading and writing but do not require high security. | enum | no | Android | yes |
-| MifareIOS | NFC A type Tag object, through which the MifareIOS technology type Tag can be accessed | enum | no | iOS | no |
-| iso15693 | NFC A type Tag object, through which the iso15693 technology type Tag can be accessed | enum | no | iOS | no |
-| felica | NFC A type Tag object, through which the felica technology type Tag can be accessed | enum | no | iOS | no |
-| NdefFormatable | NdefFormatable represents an NFC tag that has not yet been formatted as NDEF | enum | no | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------- | ------------------------------------------------------------ | ---- | -------- | ----------- | ----------------- |
+| Ndef | NDEF (NFC Data Exchange Format) is a standard format used for storing and exchanging data on NFC tags | enum | no | iOS/Android | yes |
+| NfcA | NfcA stands for ISO 14443-3 Type A technology, which is a widely used NFC tag type that supports fast data transmission and high security | enum | no | iOS/Android | yes |
+| IsoDep | IsoDep represents the ISO/IEC 7816-4 standard, which defines the communication protocol between smart cards and readers | enum | no | iOS/Android | yes |
+| NfcF | NfcF stands for ISO 14443-4 Type F technology, which supports high-speed data transmission and more complex encryption functions | enum | no | Android | yes |
+| NfcV | NfcV stands for ISO 15693 technology, also known as VICC (Vicinity Integrated Circuit Card), mainly used for low-frequency NFC tags with a longer reading distance. | enum | no | Android | yes |
+| NfcB | NfcB stands for ISO 14443-3 Type B technology, similar to NfcA but with different physical characteristics and communication protocols. | enum | no | Android | yes |
+| MifareClassic | Mifare Classic is a popular NFC tag type produced by NXP Semiconductors (now renamed NXP), widely used in fields such as access control systems, bus cards, and payment applications | enum | no | Android | yes |
+| MifareUltralight | Mifare Ultralight is a low-cost NFC tag in the Mifare series, suitable for applications that require fast reading and writing but do not require high security. | enum | no | Android | yes |
+| MifareIOS | NFC A type Tag object, through which the MifareIOS technology type Tag can be accessed | enum | no | iOS | no |
+| iso15693 | NFC A type Tag object, through which the iso15693 technology type Tag can be accessed | enum | no | iOS | no |
+| felica | NFC A type Tag object, through which the felica technology type Tag can be accessed | enum | no | iOS | no |
+| NdefFormatable | NdefFormatable represents an NFC tag that has not yet been formatted as NDEF | enum | no | Android | yes |
## Return value
**NdefStatus**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| NotSupported | When NFC tags do not support NDEF format, this status will be returned | enum | NO | iOS/Android | yes |
-| ReadWrite | When NFC tags support NDEF format and allow read and write operations, this status will be returned | enum | NO | iOS/Android | yes |
-| ReadOnly | When NFC tags support NDEF format but only allow read operations, this status will be returned | enum | NO | iOS/Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------ | ------------------------------------------------------------ | ---- | -------- | ----------- | ----------------- |
+| NotSupported | When NFC tags do not support NDEF format, this status will be returned | enum | NO | iOS/Android | yes |
+| ReadWrite | When NFC tags support NDEF format and allow read and write operations, this status will be returned | enum | NO | iOS/Android | yes |
+| ReadOnly | When NFC tags support NDEF format but only allow read operations, this status will be returned | enum | NO | iOS/Android | yes |
**TagEvent**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| ndefMessage | Retrieve all records from NDEF messages | NdefRecord[] | NO | iOS/Android | yes |
-| maxSize | This attribute represents the maximum number of bytes that can be stored on an NFC tag | number | NO | iOS/Android | yes |
-| type | The 'type' attribute may be used to identify the type or format of NFC tags | string | NO | iOS/Android | yes |
-| techTypes | This is an array containing strings used to identify the technology types supported by NFC tags | string[] | NO | iOS/Android | yes |
-| id | The id attribute represents the unique identifier of the NFC tag | string | NO | iOS/Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------- | ------------------------------------------------------------ | ------------ | -------- | ----------- | ----------------- |
+| ndefMessage | Retrieve all records from NDEF messages | NdefRecord[] | NO | iOS/Android | yes |
+| maxSize | This attribute represents the maximum number of bytes that can be stored on an NFC tag | number | NO | iOS/Android | yes |
+| type | The 'type' attribute may be used to identify the type or format of NFC tags | string | NO | iOS/Android | yes |
+| techTypes | This is an array containing strings used to identify the technology types supported by NFC tags | string[] | NO | iOS/Android | yes |
+| id | The id attribute represents the unique identifier of the NFC tag | string | NO | iOS/Android | yes |
**NdefRecord**
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| id | This is an optional byte array used as an identifier for NDEF records | number[] | NO | iOS/Android | yes |
-| tnf | TNF (Type Name Format) is an enumeration or type used to indicate the interpretation of the type field | number | NO | iOS/Android | yes |
-| type | This attribute can be a byte array (number []) or a string, depending on the value of the TNF field | number[] | NO | iOS/Android | yes |
-| payload | Payload is the actual data portion recorded by NDEF | number[] | NO | iOS/Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------- | ------------------------------------------------------------ | -------- | -------- | ----------- | ----------------- |
+| id | This is an optional byte array used as an identifier for NDEF records | number[] | NO | iOS/Android | yes |
+| tnf | TNF (Type Name Format) is an enumeration or type used to indicate the interpretation of the type field | number | NO | iOS/Android | yes |
+| type | This attribute can be a byte array (number []) or a string, depending on the value of the TNF field | number[] | NO | iOS/Android | yes |
+| payload | Payload is the actual data portion recorded by NDEF | number[] | NO | iOS/Android | yes |
## Known Issues
## Others
-本库是一个为 React Native 开发者提供的 NFC(近场通信)管理库,它允许开发者在 React Native 应用中轻松集成 NFC 功能。这个库支持 iOS 、 Android 和 HarmonyOS NEXT 平台,使得开发者可以跨平台地实现 NFC 相关的功能,如读取和写入 NFC 标签、进行智能卡模拟等。因平台不同,iOS 、Android 和 HarmonyOS NEXT 在 NFC(近场通信)技术中对标签和协议类型存在兼容性。本库的设计考虑到了 Android 和 HarmonyOS NEXT 兼容性较高,核心功能在两个平台上都能实现,并且表现一致。该库提供了多种 NFC 技术的支持,包括但不限于 NDEF、NfcA、IsoDep 和 NfcV 等。
+You can integrate NFC functions into React Native applications in the NFC management library, and implement NFC-related functions, such as reading and writing NFC tags and performing smart card emulation, across iOS, Android, and HarmonyOS NEXT platforms. Due to differences in NFC tag and protocol support across platforms, there are compatibility considerations for iOS, Android, and HarmonyOS NEXT. The design of this library takes into account a high compatibility with Android and HarmonyOS NEXT, ensuring that the core functionalities are implemented and perform consistently on both platforms. NFC technologies include but are not limited to NDEF, NfcA, IsoDep, and NfcV.
## License
--
Gitee
From 6487ff558e8b778869ce9e78758a14f8ed52011d Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 10:00:37 +0800
Subject: [PATCH 36/40] docs: [Issues: #IBDWTP]
react-native-orientation-locker.md
---
en/react-native-orientation-locker.md | 50 +++++++++++++--------------
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/en/react-native-orientation-locker.md b/en/react-native-orientation-locker.md
index cae1e091..9e0a4746 100644
--- a/en/react-native-orientation-locker.md
+++ b/en/react-native-orientation-locker.md
@@ -16,7 +16,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-library/react-native-orientation-locker Releases](https://github.com/react-native-oh-library/react-native-orientation-locker/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-library/react-native-orientation-locker Releases](https://github.com/react-native-oh-library/react-native-orientation-locker/releases). 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.
Go to the project directory and execute the following instruction:
@@ -253,7 +253,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] 源码位于三方库安装路径的 `harmony` 文件夹下。
+> [!TIP] The source code is stored in the `harmony` folder in the installation path of the third-party library.
Open `entry/oh-package.json5` file and add the following dependencies:
@@ -310,43 +310,43 @@ Check the release version information in the release address of the third-party
This document is verified based on the following versions:
1. RNOH: 0.72.20; SDK: HarmonyOS NEXT Developer Beta1; IDE: DevEco Studio 5.0.3.200; ROM: 3.0.0.18;
-2. RNOH: 0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71 (API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
## API
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!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.
+> [!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.
For details, see [react-native-orientation-locker](https://github.com/react-native-oh-library/react-native-orientation-locker)
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| --------------------- | ------------------------------------------------------------------------ | -------- | -------- | ----------- | ----------------- |
-| lockToPortrait | Lock the orientation of the application to portrait (portrait) | function | No | IOS/Android | yes |
-| lockToLandscape | Lock the orientation of the application to landscape (landscape) | function | No | IOS/Android | yes |
-| lockToLandscapeLeft | Lock the orientation of the app to landscape and rotated to the left | function | No | IOS/Android | yes |
-| lockToLandscapeRight | Lock the orientation of the app to landscape and rotated to the right | function | No | IOS/Android | yes |
-| unlockAllOrientations | Unlocks the orientation of the app, allowing the device to rotate freely | function | No | IOS/Android | yes |
-| getOrientation | Get the direction of the current device | callback | No | IOS/Android | yes |
-| getDeviceOrientation | Obtains the direction of the current device | callback | No | IOS/Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------------------- | ------------------------------------------------------------ | -------- | -------- | ----------- | ----------------- |
+| lockToPortrait | Lock the orientation of the application to portrait (portrait) | function | No | iOS/Android| yes |
+| lockToLandscape | Lock the orientation of the application to landscape (landscape) | function | No | iOS/Android| yes |
+| lockToLandscapeLeft | Lock the orientation of the app to landscape and rotated to the left | function | No | iOS/Android| yes |
+| lockToLandscapeRight | Lock the orientation of the app to landscape and rotated to the right | function | No | iOS/Android| yes |
+| unlockAllOrientations | Unlocks the orientation of the app, allowing the device to rotate freely | function | No | iOS/Android| yes |
+| getOrientation | Get the direction of the current device | callback | No | iOS/Android| yes |
+| getDeviceOrientation | Obtains the direction of the current device | callback | No | iOS/Android| yes |
## Events
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!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.
+> [!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.
For details, see [react-native-orientation-locker](https://github.com/react-native-oh-library/react-native-orientation-locker)
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | -------- | ----------- | ----------------- |
-| addOrientationListener | When UI orientation changed, callback function will be called. But if lockToXXX is called , callback function will be not called untill unlockAllOrientations. It can return either PORTRAIT LANDSCAPE-LEFT LANDSCAPE-RIGHT PORTRAIT-UPSIDEDOWN UNKNOWN When lockToXXX/unlockAllOrientations, it will force resend UI orientation changed event. | callback | No | IOS/Android | yes |
-| addDeviceOrientationListener | When device orientation changed, callback function will be called. When lockToXXX is called, callback function also can be called. It can return either PORTRAIT LANDSCAPE-LEFT LANDSCAPE-RIGHT PORTRAIT-UPSIDEDOWN UNKNOWN | callback | No | IOS/Android | yes |
-| removeOrientationListener | | callback | No | IOS/Android | yes |
-| removeDeviceOrientationListener | | callback | No | IOS/Android | yes |
-| addLockListener | When call lockToXXX/unlockAllOrientations, callback function will be called. It can return either PORTRAIT LANDSCAPE-LEFT LANDSCAPE-RIGHT UNKNOWN UNKNOWN means not be locked. | callback | No | IOS/Android | yes |
-| removeLockListener | | callback | No | IOS/Android | yes |
-| removeAllListeners | | callback | No | IOS/Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------------------- | ------------------------------------------------------------ | -------- | -------- | ----------- | ----------------- |
+| addOrientationListener | When UI orientation changed, callback function will be called. But if lockToXXX is called , callback function will be not called untill unlockAllOrientations. It can return either PORTRAIT LANDSCAPE-LEFT LANDSCAPE-RIGHT PORTRAIT-UPSIDEDOWN UNKNOWN When lockToXXX/unlockAllOrientations, it will force resend UI orientation changed event. | callback | No | iOS/Android| yes |
+| addDeviceOrientationListener | When device orientation changed, callback function will be called. When lockToXXX is called, callback function also can be called. It can return either PORTRAIT LANDSCAPE-LEFT LANDSCAPE-RIGHT PORTRAIT-UPSIDEDOWN UNKNOWN | callback | No | iOS/Android| yes |
+| removeOrientationListener | | callback | No | iOS/Android| yes |
+| removeDeviceOrientationListener | | callback | No | iOS/Android| yes |
+| addLockListener | When call lockToXXX/unlockAllOrientations, callback function will be called. It can return either PORTRAIT LANDSCAPE-LEFT LANDSCAPE-RIGHT UNKNOWN UNKNOWN means not be locked. | callback | No | iOS/Android| yes |
+| removeLockListener | | callback | No | iOS/Android| yes |
+| removeAllListeners | | callback | No | iOS/Android| yes |
## Others
--
Gitee
From 627bfd3546facc17d45e73a3803648fd6697141f Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 10:00:46 +0800
Subject: [PATCH 37/40] docs: [Issues: #IBDWTP] react-native-performance.md
---
en/react-native-performance.md | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/en/react-native-performance.md b/en/react-native-performance.md
index fb60debe..ac338217 100644
--- a/en/react-native-performance.md
+++ b/en/react-native-performance.md
@@ -17,7 +17,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-performance Releases](https://github.com/react-native-oh-library/react-native-performance/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-performance Releases](https://github.com/react-native-oh-library/react-native-performance/releases). 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.
Go to the project directory and execute the following instruction:
@@ -248,7 +248,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
### 3. Introducing RNPerformancePackage to ArkTS
@@ -289,7 +289,7 @@ Check the release version information in the release address of the third-party
## Performance
-默认导出 Performance 对象
+Exports the **Performance** object by default.
> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
@@ -299,25 +299,25 @@ Check the release version information in the release address of the third-party
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---------- | ------------------------------------------------------- | ------ | -------- | ----------- | ----------------- |
-| timeOrigin | 返回 Performance 用作性能相关时间戳基线的高分辨率时间戳 | number | yes | IOS/Android | yes |
+| timeOrigin | Returns the high-resolution timestamp used by **Performance** as the performance-related baseline timestamp.| number | yes | IOS/Android | yes |
#### Performance method
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ----------- | ----------------- |
-| now | 返回一个高分辨率时间戳(以毫秒为单位) | function | yes | IOS/Android | yes |
-| mark | 根据给出 markName 值,在性能输入缓冲区中创建一个 timestamp(时间戳) | function | yes | IOS/Android | yes |
-| measure | 性能记录缓存中使用 measure()创建一个新的测量记录如果仅指定了测量名称,则开始时间戳设置为零,结束时间戳(用于计算持续时间)是 Performance.now()返回的值。可以使用字符串将 PerformanceMark 对象标识为开始标记和结束标记。要只提供一个 endMark,您需要提供一个空的测量选项对象: performance.Measure(“myMeasure”,{},“myEndMarker”) | function | yes | IOS/Android | yes |
-| metric | 如果您希望收集不基于时间的自定义度量,此模块将提供名为.metric()的 Performance API 扩展,该扩展将生成类型为 metric 的条目 | function | yes | IOS/Android | yes |
-| getEntries | 对于给定的 filter,此方法返回 PerformanceEntry 对象数组,如果不带任何参数,返回全部 entries | function | yes | IOS/Android | yes |
-| getEntriesByName | 返回一个给定名称和 name 和 type 属性的 PerformanceEntry 对象数组 | function | yes | IOS/Android | yes |
-| getEntriesByType | 返回一个给定 type 属性的 PerformanceEntry 对象数组 | function | yes | IOS/Android | yes |
-| clearMarks | 从缓存中移除声明的标记。如果调用这个方法时没有传递参数,则所有带有 entry type 这类标记的 performance entries 将从 performance entry 缓存区中被移除。 | function | yes | IOS/Android | yes |
-| clearMeasures | 从缓存区中移除声明的测量记录。如果这个方法被调用时没有传入参数,则所有 entry type 标记值为"measure" 的性能实体将被从性能入口缓存区中移除。 | function | yes | IOS/Android | yes |
+| now | Returns a high-resolution timestamp, in milliseconds. | function | yes | IOS/Android | yes |
+| mark | Creates a timestamp in the performance input buffer based on the given **markName** value. | function | yes | IOS/Android | yes |
+| measure | Creates a measure record in the performance record cache. If only the measure name is specified, the start timestamp is set to zero, and the end timestamp (used to calculate the duration) is the value returned by **Performance.now()**. You can use a string to set the **PerformanceMark** object to a start tag and an end tag. If only the **endMark** is provided, you need to set an empty measure option object: **performance.Measure("myMeasure", {}, "myEndMarker")**.| function | yes | IOS/Android | yes |
+| metric | Generates entries of the **metric** type if you want to collect custom metrics that are not time-based. This function is an extension of the Performance API. | function | yes | IOS/Android | yes |
+| getEntries | Returns a **PerformanceEntry** object array if a **filter** is specified; returns all entries if no parameter is specified. | function | yes | IOS/Android | yes |
+| getEntriesByName | Returns an array of **PerformanceEntry** objects with the given **name** and **type**. | function | yes | IOS/Android | yes |
+| getEntriesByType | Returns a **PerformanceEntry** object array with the given **type**. | function | yes | IOS/Android | yes |
+| clearMarks | Removes the declared marks from the cache. If no parameter is passed, all performance entries with the **entry type** mark are removed from the performance entry cache. | function | yes | IOS/Android | yes |
+| clearMeasures | Removes the declared measure records from the cache. If no parameter is passed, all performance entities whose **entry type** is **measure** are removed from the performance entry cache. | function | yes | IOS/Android | yes |
## PerformanceObserver
-给定的观察者 callback 生成一个新的 PerformanceObserver 对象。当通过 observe() 方法注册的 条目类型 的 性能条目事件 被记录下来时,调用该观察者回调。
+Generates a **PerformanceObserver** object based on the specified observer callback, which is called when the performance entry event of the **entry type** registered through **observe()** is recorded.
> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
@@ -327,7 +327,7 @@ Check the release version information in the release address of the third-party
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ----------- | ----------------- |
-| observe | observe() 方法用于指定 PerformanceObserver 对象观察的性能条目类型。当记录一个指定类型的性能条目时,性能监测对象的回调函数将会被调用。 | function | yes | IOS/Android | yes |
+| observe | Specifies the performance entry type for the **PerformanceObserver** object. When a performance entry of a specified type is recorded, the callback of the performance observer object is called.| function | yes | IOS/Android | yes |
## API
@@ -337,7 +337,7 @@ Check the release version information in the release address of the third-party
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------------------------- | ----------------------------------------------------------------------------------- | -------- | -------- | ----------- | ----------------- |
-| setResourceLoggingEnabled | 默认情况下禁用资源日志记录,并且当前仅 fetch/XMLHttpRequest 使用,使用时需设置开启。 | function | yes | IOS/Android | yes |
+| setResourceLoggingEnabled | Enables resource logging, which is disabled by default and is used only by **fetch** and **XMLHttpRequest**.| function | yes | IOS/Android | yes |
## Known Issues
@@ -345,4 +345,4 @@ Check the release version information in the release address of the third-party
## License
-This project is licensed under [The MIT License (MIT)](https://github.com/oblador/react-native-performance/blob/master/LICENSE).
+This project is licensed under [MIT License](https://github.com/oblador/react-native-performance/blob/master/LICENSE).
--
Gitee
From ddbeb92929f0c5315aaebc748edb7ddc6c04f102 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 10:00:56 +0800
Subject: [PATCH 38/40] docs: [Issues: #IBDWTP] react-native-print.md
---
en/react-native-print.md | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/en/react-native-print.md b/en/react-native-print.md
index c2c79524..a2b58a95 100644
--- a/en/react-native-print.md
+++ b/en/react-native-print.md
@@ -16,7 +16,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-print Releases](https://github.com/react-native-oh-library/react-native-print/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-print Releases](https://github.com/react-native-oh-library/react-native-print/releases). 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.
Go to the project directory and execute the following instruction:
@@ -42,7 +42,7 @@ The following code shows the basic use scenario of the repository:
> [!WARNING] The name of the imported repository remains unchanged.
-> [!TIP] 本示例依赖 react-native-document-picker 库,参照[@react-native-oh-tpl/react-native-document-picker 文档](/zh-cn/react-native-document-picker.md)进行引入。
+> [!TIP] This example depends on the react-native-document-picker library. For details, see [@react-native-oh-tpl/react-native-document-picker document](/en/react-native-document-picker.md).
```js
import React, {useState} from 'react';
@@ -159,7 +159,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
### 3. Introducing RNPrintPackage to ArkTS
@@ -260,11 +260,11 @@ Open the `entry/src/main/resources/base/element/string.json` file and add the fo
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------------- | ------------------------------------------------------------- | ------- | -------- | ------------ | ----------------- |
-| `html` | HTML string to print(The value must be html or filepath.) | string | no | Android、iOS | no |
-| `filePath` | Local or remote file url(The value must be html or filepath.) | string | no | Android、iOS | yes |
+| `html` | HTML string to print(The value must be html or filepath.) | string | no | Android, iOS| no |
+| `filePath` | Local or remote file url(The value must be html or filepath.) | string | no | Android, iOS| yes |
| `printerURL` | **iOS Only:** URL returned from `selectPrinterMethod()` | string | no | iOS | no |
-| `isLandscape` | Landscape print; default value is false | boolean | no | Android、iOS | no |
-| `jobName` | Name of printing job; default value is "Document" | string | no | Android、iOS | yes |
+| `isLandscape` | Landscape print; default value is false | boolean | no | Android, iOS| no |
+| `jobName` | Name of printing job; default value is "Document" | string | no | Android, iOS| yes |
| `baseUrl` | Used to resolve relative links in the HTML | string | no | Android | no |
### selectPrinter(options: Object)
@@ -276,11 +276,11 @@ Open the `entry/src/main/resources/base/element/string.json` file and add the fo
## Known Issues
-- [ ] HarmonyOS NEXT 上不支持 html、printerURL、isLandscape、baseUrl 等参数,并且不支持打印 word 文档: [issue#1](https://github.com/react-native-oh-library/react-native-print/issues/1)
-- [ ] HarmonyOS NEXT 上不支持 selectPrinter()方法 : [issue#2](https://github.com/react-native-oh-library/react-native-print/issues/4)
+- [ ] HarmonyOS NEXT does not support parameters such as **html**, **printerURL**, **isLandscape**, and **baseUrl**, and does not support printing of Word documents: [issue#1](https://github.com/react-native-oh-library/react-native-print/issues/1).
+- [ ] HarmonyOS NEXT does not support **selectPrinter()**: [issue#2](https://github.com/react-native-oh-library/react-native-print/issues/4).
## Others
## License
-This project is licensed under [The MIT License (MIT)](https://github.com/christopherdro/react-native-print/blob/master/LICENSE).
+This project is licensed under [MIT License](https://github.com/christopherdro/react-native-print/blob/master/LICENSE).
--
Gitee
From 7001a34bed795b9e7402cab321688cea96476a29 Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 10:01:17 +0800
Subject: [PATCH 39/40] docs: [Issues: #IBDWTP] react-native-size-matters.md
---
en/react-native-size-matters.md | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/en/react-native-size-matters.md b/en/react-native-size-matters.md
index 9573d8bb..5fb3f12f 100644
--- a/en/react-native-size-matters.md
+++ b/en/react-native-size-matters.md
@@ -38,7 +38,7 @@ The following code shows the basic use scenario of the repository:
> [!WARNING] The name of the imported repository remains unchanged.
-**这里是该插件提供的基础用法**
+**Basic usage**:
```js
@@ -187,7 +187,7 @@ export default class sizeMattersDemo {
```
-**这里提供注解用法**
+**Annotation usage**:
```javascript
import { Text, View } from "react-native";
@@ -221,8 +221,8 @@ export default class sizeMattersDemo {
This document is verified based on the following versions:
-1. RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.3.400; ROM:3.0.0.25;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+1. RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE: DevEco Studio 5.0.3.400; ROM: 3.0.0.25;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71 (API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
## API
@@ -232,14 +232,14 @@ This document is verified based on the following versions:
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ------------ | ----------------- |
-| scale | 将根据您设备的屏幕宽度返回所提供尺寸的线性缩放结果。 | Function | No | Android、iOS | Yes |
-| verticalScale | 将根据您设备的屏幕高度返回所提供尺寸的线性缩放结果。 | Function | No | Android、iOS | Yes |
-| moderateScale | 有时您不想以线性方式缩放所有内容,这时可以使用 moderateScale。它的妙处在于您可以控制调整大小的因子(默认值为 0.5)。如果正常缩放会将您的尺寸增加 +2X,则 moderateScale 只会将其增加 +X | Function | No | Android、iOS | Yes |
-| moderateVerticalScale | 与 moderateScale 相同,但使用 verticalScale 而不是 scale。 | Function | No | Android、iOS | Yes |
-| s | scale 方法的别名 | Function | No | Android、iOS | Yes |
-| vs | verticalScale 方法的别名 | Function | No | Android、iOS | Yes |
-| ms | moderateScale 别名方法 | Function | No | Android、iOS | Yes |
-| mvs | moderateVerticalScale 的别名方法 | Function | No | Android、iOS | Yes |
+| scale | Returns the linear scaling result of the provided size based on the screen width of the device. | Function | No | Android, iOS| Yes |
+| verticalScale | Returns the linear scaling result of the provided size based on the screen height of the device. | Function | No | Android, iOS| Yes |
+| moderateScale | Scales the content that you do not want to scale in a linear manner. You can control the resize factor, which is 0.5 by default, as required. If normal scaling increases the size by 2X, **moderateScale** will only increase it by X.| Function | No | Android, iOS| Yes |
+| moderateVerticalScale | Works in the same way as **moderateScale**, but uses **verticalScale** instead of **scale**. | Function | No | Android, iOS| Yes |
+| s | Alias of the **scale** API. | Function | No | Android, iOS| Yes |
+| vs | Alias of the **verticalScale** API. | Function | No | Android, iOS| Yes |
+| ms | Alias of the **moderateScale** API. | Function | No | Android, iOS| Yes |
+| mvs | Alias of the **moderateVerticalScale** API. | Function | No | Android, iOS| Yes |
## Known Issues
@@ -247,4 +247,4 @@ This document is verified based on the following versions:
## License
-This project is licensed under [The MIT License(MIT)](https://github.com/nirsky/react-native-size-matters/blob/master/LICENSE).
+This project is licensed under [MIT License](https://github.com/nirsky/react-native-size-matters/blob/master/LICENSE).
--
Gitee
From 54de1abdbd8ac120e9f4e22660ce187b3ec2a64e Mon Sep 17 00:00:00 2001
From: lizhien52O
Date: Thu, 2 Jan 2025 10:01:30 +0800
Subject: [PATCH 40/40] docs: [Issues: #IBDWTP] react-native-view-pdf.md
---
en/react-native-view-pdf.md | 38 ++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/en/react-native-view-pdf.md b/en/react-native-view-pdf.md
index a39863b6..b16d5d17 100644
--- a/en/react-native-view-pdf.md
+++ b/en/react-native-view-pdf.md
@@ -16,7 +16,7 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-view-pdf Releases](https://github.com/react-native-oh-library/react-native-PDFView/releases).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.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-view-pdf Releases](https://github.com/react-native-oh-library/react-native-PDFView/releases). 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.
Go to the project directory and execute the following instruction:
@@ -62,7 +62,7 @@ export function PdfViewExample() {
## Use Codegen
-If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/zh-cn/codegen.md).
+If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/en/codegen.md).
## Link
@@ -109,7 +109,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
### 3. Introducing RNPDFView Component to ArkTS
@@ -187,19 +187,19 @@ Check the release version information in the release address of the third-party
> [!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 |
-| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | -------- | ----------------- |
-| resource | A resource to render. It's possible to render PDF from file, url (should be encoded) or base64 | string | yes | all | yes |
-| resourceType | Should correspond to resource and can be: file, url or base64 | string | no | all | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| resource | A resource to render. It's possible to render PDF from file, url (should be encoded) or base64 | string | yes | all | yes |
+| resourceType | Should correspond to resource and can be: file, url or base64 | string | no | all | yes |
| fileFrom | iOS: In case if resourceType is set to file, there are different way to search for it on iOS file system. Currently documentsDirectory, libraryDirectory, cachesDirectory, tempDirectory and bundle are supported. harmony: files, cache, temp | string | no | iOS | yes |
-| onLoad | Callback that is triggered when loading is completed | function | no | all | yes |
-| onError | Callback that is triggered when loading has failed. And error is provided as a function parameter | style | no | all | yes |
-| style | css style | string | no | all | yes |
-| fadeInDuration | Fade in duration (in ms, defaults to 0.0) to smoothly fade the webview into view when pdf loading is completed | number | no | all | yes |
-| enableAnnotations | Android ONLY: Boolean to enable Android view annotations (default is false). | boolean | no | Android | no |
-| urlProps | Extended properties for url type that allows to specify HTTP Method, HTTP headers and HTTP body | map | no | all | no |
-| onPageChanged | Callback that is invoked when page is changed. Provides active page and total pages information | function | no | Android | no |
-| onScrolled | Callback that is invoked when PDF is scrolled. Provides offset value in a range between 0 and 1. Currently only 0 and 1 are supported. | function | no | all | no |
+| onLoad | Callback that is triggered when loading is completed | function | no | all | yes |
+| onError | Callback that is triggered when loading has failed. And error is provided as a function parameter | style | no | all | yes |
+| style | css style | string | no | all | yes |
+| fadeInDuration | Fade in duration (in ms, defaults to 0.0) to smoothly fade the webview into view when pdf loading is completed | number | no | all | yes |
+| enableAnnotations | Android ONLY: Boolean to enable Android view annotations (default is false). | boolean | no | Android | no |
+| urlProps | Extended properties for url type that allows to specify HTTP Method, HTTP headers and HTTP body | map | no | all | no |
+| onPageChanged | Callback that is invoked when page is changed. Provides active page and total pages information | function | no | Android | no |
+| onScrolled | Callback that is invoked when PDF is scrolled. Provides offset value in a range between 0 and 1. Currently only 0 and 1 are supported. | function | no | all | no |
### Static Methods
@@ -207,14 +207,14 @@ Check the release version information in the release address of the third-party
> [!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 |
-| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | -------- | ----------------- |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------ | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
| reload | Allows to reload the PDF document. This can be useful in such cases as network issues, document is expired, etc. To reload the document you will need a `ref` to the component: | function | yes | all | yes |
## Known Issues
-- [ ] urlProps 属性不支持, HarmonyOS 原生组件 webview 不支持 urlProps。[issue: #5](https://github.com/react-native-oh-library/react-native-PDFView/issues/5)
-- [ ] onScrolled 属性不支持, HarmonyOS 原生组件 webview 加载 pdf 文件时 onScrolled 回调函数不执行。 [issue: #6](https://github.com/react-native-oh-library/react-native-PDFView/issues/6)
+- [ ] The urlProps property is not supported. The native HarmonyOS component WebView does not support urlProps.[issue: #5](https://github.com/react-native-oh-library/react-native-PDFView/issues/5)
+- [ ] The onScrolled property is not supported. The onScrolled callback function is not executed when the native HarmonyOS component webview loads a PDF file. [issue: #6](https://github.com/react-native-oh-library/react-native-PDFView/issues/6)
## Others
--
Gitee