diff --git a/en/react-native-animatable.md b/en/react-native-animatable.md
index f297d36537826123ac1669b855be6bcf353477aa..aa57f92ca0f9aa476071ff3a7ec90ec4d2a976e8 100644
--- a/en/react-native-animatable.md
+++ b/en/react-native-animatable.md
@@ -123,20 +123,20 @@ This document is verified based on the following versions:
| 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 |
+| animation | Animation name. For details, see the following available animations. | string/undefined | No | all | yes |
+| duration | Animation duration, in milliseconds. | number/undefined | No | all | yes |
+| delay | (Optional) Animation delay, in milliseconds. | number/undefined | No | all | yes |
+| direction | Animation direction, particularly suitable for animation repeating. Valid values are **normal**, **reverse**, **alternate**, and **alternate-reverse**.| string/undefined | No | all | yes |
+| easing | Easing function. Valid values are **custom**, **linear**, **ease-in**, **ease-out**, and **ease-in-out**. | string/undefined | No | all | yes |
+| iterationCount | Number of times an animation should be played. Set it to **infinite** for animations to be looped. | number/undefined | No | all | yes |
+| iterationDelay | Time between animation iterations, in milliseconds. | number/undefined | No | 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 | No | all | yes |
+| onAnimationBegin | Function called when the animation is started. | Function/undefined | No | 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 | No | all | yes |
+| onTransitionBegin | Function called when the style conversion starts. Use property parameters to call functions to distinguish styles.| Function/undefined | No | 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 | No | 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 | No | all | yes |
+| isInteraction | Whether the animation creates an interaction handle on the interaction manager. | Boolean | No | all | yes |
## Others
diff --git a/en/react-native-baidu-map.md b/en/react-native-baidu-map.md
index e0b7d2634422f2e8294717283ca4aa01b1980519..3985c684baeab780af3184ead46e7089fb9235b7 100644
--- a/en/react-native-baidu-map.md
+++ b/en/react-native-baidu-map.md
@@ -447,102 +447,103 @@ Open `entry/src/main/module.json5`, add the following permission:
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|-------------------------|----------------------------------|----------|----------|----------|-------------------|
-| zoomControlsVisible | 显示或隐藏缩放控件 | Boolean | no | Android | yes |
-| trafficEnabled | 是否启用交通图层 | Boolean | no | All | yes |
-| baiduHeatMapEnabled | 是否启用百度热力图 | Boolean | no | All | no |
-| zoomGesturesEnabled | 允许手势缩放 | Boolean | no | All | yes |
-| scrollGesturesEnabled | 允许拖动 | Boolean | no | All | yes |
-| mapType | 地图类型 | Number | no | All | partially |
-| zoom | 地图的缩放级别 | Number | no | All | yes |
-| showsUserLocation | 是否显示定位 | Boolean | no | All | yes |
-| locationData | 定位信息 {latitude: 0, longitude: 0} | Object | no | All | yes |
+| zoomControlsVisible | Displays or hides zoom controls. | Boolean | no | Android | yes |
+| trafficEnabled | Enables the traffic layer. | Boolean | no | All | yes |
+| baiduHeatMapEnabled | Enables Baidu heatmap. | Boolean | no | All | no |
+| zoomGesturesEnabled | Allows zooming via gestures. | Boolean | no | All | yes |
+| scrollGesturesEnabled | Allows dragging. | Boolean | no | All | yes |
+| mapType | Type of the map. | Number | no | All | partially |
+| zoom | Zoom level of the map. | Number | no | All | yes |
+| showsUserLocation | Displays the user location. | Boolean | no | All | yes |
+| locationData | Location data {latitude: 0, longitude: 0} | Object | no | All | yes |
| center | {latitude: 0, longitude: 0} | Object | no | All | yes |
-| onMapStatusChangeStart | 地图状态开始变化时的回调函数 | Function | no | Android | no |
-| onMapStatusChange | 地图状态变化时的回调函数 | Function | no | All | no |
-| onMapStatusChangeFinish | 地图状态变化完成时的回调函数 | Function | no | Android | no |
-| onMapLoaded | 地图加载完成时的回调函数 | Function | no | All | yes |
-| onMapClick | 地图被点击时的回调函数 | Function | no | All | yes |
-| onMapDoubleClick | 地图被双击时的回调函数 | Function | no | All | yes |
-| onMarkerClick | 地图上的标记被点击时的回调函数 | Function | no | All | no |
-| onMapPoiClick | 地图上的兴趣点(POI)被点击时的回调函数 | Function | no | All | no |
+| onMapStatusChangeStart | Callback triggered when map status changes start. | Function | no | Android | no |
+| onMapStatusChange | Callback triggered during map status changes. | Function | no | All | no |
+| onMapStatusChangeFinish | Callback triggered when map status changes finish. | Function | no | Android | no |
+| onMapLoaded | Callback triggered when map loading completes. | Function | no | All | yes |
+| onMapClick | Callback triggered when the map is clicked. | Function | no | All | yes |
+| onMapDoubleClick | Callback triggered when the map is double-clicked. | Function | no | All | yes |
+| onMarkerClick | Callback triggered when a marker is clicked. | Function | no | All | no |
+| onMapPoiClick | Callback triggered when a point of interest (POI) on the map is clicked. | Function | no | All | no |
#### Marker Props
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|--------------|------------------------------------------|----------|----------|----------|-------------------|
-| title | 如果没有 InfoWindow,将会根据 title 生成 InfoWindow | String | no | All | no |
-| titleOffsetY | title 作为 InfoWindow 展示的 y 轴偏移量 | Number | no | Android | no |
-| location | 标记的经纬度坐标位置 | Object | yes | All | yes |
-| perspective | 远大近小的效果 | Boolean | no | Android | no |
-| flat | 是否使标记扁平化 | Boolean | no | Android | yes |
-| rotate | 旋转角度 | Number | no | Android | yes |
-| icon | icon图片,同 的 source 属性 | Object | no | All | yes |
-| alpha | 透明度 | Number | no | Android | yes |
-| animateType | 动画效果:drop/grow/jump | String | no | All | yes |
-| pinColor | red/green/purple,大头针颜色 | String | no | IOS | no |
-| onClick | 当标记被点击时触发的回调函数 | Function | no | All | yes |
-
-#### Cluster 点聚合
+| title | Generates the **InfoWindow** based on the title if no **InfoWindow** is provided. | String | no | All | no |
+| titleOffsetY | Y-axis offset for title when displayed as the **InfoWindow**. | Number | no | Android | no |
+| location | Longitude and latitude coordinates of a marker. | Object | yes | All | yes |
+| perspective | Perspective effect. | Boolean | no | Android | no |
+| flat | Flattens a marker. | Boolean | no | Android | yes |
+| rotate | Rotation angle. | Number | no | Android | yes |
+| icon | Image, which is the same as the **source** property of the **Image** component. | Object | no | All | yes |
+| alpha | Opacity. | Number | no | Android | yes |
+| animateType | Animation effect:drop/grow/jump | String | no | All | yes |
+| pinColor | Pin color: red/green/purple. | String | no | IOS | no |
+| onClick | Callback triggered when a marker is clicked. | Function | no | All | yes |
+
+#### Cluster
#### Arc Props
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|--------|----------------|---------|----------|----------|-------------------|
-| stroke | 当标记被点击时触发的回调函数 | Object | yes | All | no |
-| points | 数值长度必须为 | Object | yes | All | no |
-| dash | 是否为虚线 | Boolean | yes | iOS | no |
+| stroke | Callback triggered when a marker is clicked.| Object | yes | All | no |
+| points | The value length must be **3**. | Object | yes | All | no |
+| dash | Determines if a line is dashed. | Boolean | yes | iOS | no |
#### Circle Props
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|-----------|-------------------|--------|----------|----------|-------------------|
-| radius | 圆的半径 | Number | yes | All | yes |
-| fillColor | 圆的填充颜色(十六进制,带透明度) | String | yes | All | yes |
-| stroke | 圆的描边样式 | Object | yes | All | yes |
-| center | 圆的中心点坐标 | Object | yes | All | yes |
+| radius | Radius of a circle. | Number | yes | All | yes |
+| fillColor | Fill color of a circle (hexadecimal, with opacity).| String | yes | All | yes |
+| stroke | Stroke style of a circle. | Object | yes | All | yes |
+| center | Center point coordinates of a circle. | Object | yes | All | yes |
#### Polyline Props
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|--------|-------------|--------|----------|----------|-------------------|
-| points | 折线的顶点坐标数组 | Object | yes | All | yes |
-| stroke | 折线的描边样式 | Object | yes | All | no |
+| points | Vertex coordinate array of a polyline. | Object | yes | All | yes |
+| stroke | Stroke style of a polyline. | Object | yes | All | no |
+
#### Polygon Props
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|-----------|----------------------|--------|----------|----------|-------------------|
-| points | 多边形的顶点坐标数组 | Object | yes | All | yes |
-| fillColor | 多边形的填充颜色(十六进制,带透明度) | String | no | All | yes |
-| stroke | 多边形的描边样式 | Object | no | All | yes |
+| points | Vertex coordinate array of a polygon. | Object | yes | All | yes |
+| fillColor | Fill color of a polygon (hexadecimal, with opacity). | String | no | All | yes |
+| stroke | Polygon stroke type. | Object | no | All | yes |
#### Text Props
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|-----------|---------------|--------|----------|----------|-------------------|
-| text | 要显示的文本 | String | yes | All | yes |
-| fontSize | 文本的字体大小 | Number | no | All | yes |
-| fontColor | 文本的字体颜色(十六进制) | String | no | All | yes |
-| bgColor | 文本的背景颜色(十六进制) | String | no | All | yes |
-| rotate | 文本旋转的角度 | Number | no | All | yes |
-| location | 文本在地图上的位置坐标 | Object | yes | All | yes |
+| text | Text to display. | String | yes | All | yes |
+| fontSize | Font size of the text. | Number | no | All | yes |
+| fontColor | Font color of the text (hexadecimal).| String | no | All | yes |
+| bgColor | Background color of the text (hexadecimal).| String | no | All | yes |
+| rotate | Rotation angle of the text. | Number | no | All | yes |
+| location | Coordinates of the text on the map. | Object | yes | All | yes |
-#### MarkerIcon 使用 View 作为 marker 的 icon
+#### MarkerIcon:Using View as a Marker Icon
#### InfoWindow Props
-#### 必须作为 Marker 的子组件
+#### The **InfoWindow** must be used as a subcomponent of the **Marker.**
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|---------|--------------------------------|--------|----------|----------|-------------------|
-| offsetY | 相对于 point 在 y 轴的偏移量 | Object | yes | Android | no |
+| offsetY | Y-axis offset relative to the point. | Object | yes | Android | no |
#### HeatMap Props
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|----------|-------------|--------|----------|----------|-------------------|
-| points | 绘制热度图的点 | array | yes | All | no |
-| gradient | 颜色渐变对象 | object | yes | All | no |
+| points | Points for drawing the heatmap. | array | yes | All | no |
+| gradient | Gradient color object. | object | yes | All | no |
## Static Methods
@@ -554,45 +555,45 @@ Open `entry/src/main/module.json5`, add the following permission:
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|-------------------------------|-------------|------|----------|----------|-------------------|
-| initSDK | iOS 初始化 SDK | void | no | All | yes |
-| Promise hasLocationPermission | 是否有定位权限 | void | no | All | yes |
+| initSDK | Initializes the SDK on iOS.| void | no | All | yes |
+| Promise hasLocationPermission | Checks if location permission is granted. | void | no | All | yes |
#### Geolocation Methods
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|---------------------------------------------------|--------------------------------------|------|----------|----------|-------------------|
-| Promise reverseGeoCode | 根据给定的经纬度坐标获取相应的地址信息 | void | no | All | no |
-| Promise reverseGeoCodeGPS | 通过给定的经纬度进行反向地理编码,从而获取与该经纬度对应的地理位置信息。 | void | no | All | no |
-| Promise geocode | 调用一个提供地理编码服务的API | void | no | All | no |
-| Promise getCurrentPosition | 获取当前定位信息,coorType 可为 bd09ll 或 gcj02,默认 bd09ll | void | no | All | no |
-| startLocating(function listener, String coorType) | 开始持续定位 | void | no | All | no |
-| stopLocating | 停止持续定位 | void | no | All | no |
+| Promise reverseGeoCode | Retrieves address information based on the given coordinates. | void | no | All | no |
+| Promise reverseGeoCodeGPS | Performs reverse geocoding for given coordinates.| void | no | All | no |
+| Promise geocode | Calls a geocoding service API. | void | no | All | no |
+| Promise getCurrentPosition | Retrieves the current position. **coorType** can be **bd09ll** (default) or **gcj02**.| void | no | All | no |
+| startLocating(function listener, String coorType) | Starts continuous location tracking. | void | no | All | no |
+| stopLocating | Stops continuous location tracking. | void | no | All | no |
#### GetDistance Methods
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|-----------------------------|---------------|------|----------|----------|-------------------|
-| Promise getLocationDistance | 计算两个地理位置之间的距离 | no | no | All | no |
+| Promise getLocationDistance | Calculates the distance between two locations.| no | no | All | no |
-#### MapApp Methods 调起百度地图客户端
+#### MapApp Methods: Opening the Baidu Maps Client
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|------------------|-------------|------|----------|----------|-------------------|
-| openDrivingRoute | 调起百度地图驾车规划 | void | no | All | yes |
-| openTransitRoute | 调起百度地图公交路线 | void | no | All | yes |
-| openWalkNavi | 调起百度地图步行路线 | void | no | All | yes |
+| openDrivingRoute | Open Baidu Maps for a driving route. | void | no | All | yes |
+| openTransitRoute | Open Baidu Maps for a transit route. | void | no | All | yes |
+| openWalkNavi | Open Baidu Maps for a walking route. | void | no | All | yes |
## Known Issues
-- [ ] Arc覆盖物未实现 [#15](https://github.com/react-native-oh-library/react-native-baidu-map/issues/15)
-- [ ] infoWindow覆盖物未实现 [#16](https://github.com/react-native-oh-library/react-native-baidu-map/issues/16)
-- [ ] HeatMap覆盖物未实现 [#17](https://github.com/react-native-oh-library/react-native-baidu-map/issues/17)
-- [ ] Cluster 覆盖物未实现 [#18](https://github.com/react-native-oh-library/react-native-baidu-map/issues/18)
-- [ ] MarkerIcon 覆盖物未实现 [#19](https://github.com/react-native-oh-library/react-native-baidu-map/issues/19)
-- [ ] MapView部分事件未实现 [#20](https://github.com/react-native-oh-library/react-native-baidu-map/issues/20)
-- [ ] marker的title、pincolor、perspective属性未实现 [#21](https://github.com/react-native-oh-library/react-native-baidu-map/issues/21)
-- [ ] Geolocation 静态类功能未实现 [#22](https://github.com/react-native-oh-library/react-native-baidu-map/issues/22)
-- [ ] GetDistance静态类功能未实现 [#23](https://github.com/react-native-oh-library/react-native-baidu-map/issues/23)
-- [ ] Polyline的stroke属性未实现 [#21](https://github.com/react-native-oh-library/react-native-baidu-map/issues/29)
+- [ ] The Arc overlay is not implemented. [#15](https://github.com/react-native-oh-library/react-native-baidu-map/issues/15)
+- [ ] The infoWindow overlay is not implemented. [#16](https://github.com/react-native-oh-library/react-native-baidu-map/issues/16)
+- [ ] The HeatMap overlay is not implemented. [#17](https://github.com/react-native-oh-library/react-native-baidu-map/issues/17)
+- [ ] The Cluster overlay is not implemented. [#18](https://github.com/react-native-oh-library/react-native-baidu-map/issues/18)
+- [ ] The MarkerIcon overlay is not implemented. [#19](https://github.com/react-native-oh-library/react-native-baidu-map/issues/19)
+- [ ] Some MapView events are not implemented. [#20](https://github.com/react-native-oh-library/react-native-baidu-map/issues/20).
+- [ ] The title, pincolor, and perspective properties of the marker are not implemented. [#21](https://github.com/react-native-oh-library/react-native-baidu-map/issues/21).
+- [ ] The Geolocation static class function is not implemented. [#22](https://github.com/react-native-oh-library/react-native-baidu-map/issues/22).
+- [ ] The GetDistance static class function is not implemented. [#23](https://github.com/react-native-oh-library/react-native-baidu-map/issues/23).
+- [ ] The stroke property of Polyline is not implemented. [#21](https://github.com/react-native-oh-library/react-native-baidu-map/issues/29).
## Others
diff --git a/en/react-native-ble-plx.md b/en/react-native-ble-plx.md
index 94cbf6c057d5ea192ef82348377e1d890e91b1cf..3cea0d04ecd1e5a90213885e5248f472bfc05777 100644
--- a/en/react-native-ble-plx.md
+++ b/en/react-native-ble-plx.md
@@ -43,20 +43,19 @@ The following code shows the basic use scenario of the repository:
> [!WARNING] The name of the imported repository remains unchanged.
```js
+import React from 'react';
+import { View, Button, Alert } from 'react-native';
import {
- BleError,
BleErrorCode,
BleManager,
Device,
- State as BluetoothState,
- LogLevel,
+ Service,
+ Descriptor,
type DeviceId,
- type TransactionId,
type UUID,
type Characteristic,
- type Base64,
- type Subscription
-} from 'react-native-ble-plx'
+} from 'react-native-ble-plx';
+import Toast from 'react-native-simple-toast';
class BLEServiceInstance {
manager: BleManager
@@ -68,7 +67,7 @@ class BLEServiceInstance {
}
scanDevices = async (onDeviceFound: (device: Device) => void, UUIDs: UUID[] | null = null) => {
- this.manager.startDeviceScan(UUIDs, null, (error, device) => {
+ this.manager.startDeviceScan(UUIDs, null, (error: any, device: any) => {
if (error) {
console.error(error.message)
this.manager.stopDeviceScan()
@@ -85,11 +84,11 @@ class BLEServiceInstance {
this.manager.stopDeviceScan()
this.manager
.connectToDevice(deviceId)
- .then(device => {
+ .then((device: any) => {
this.device = device
resolve(device)
})
- .catch(error => {
+ .catch((error: any) => {
if (error.errorCode === BleErrorCode.DeviceAlreadyConnected && this.device) {
resolve(this.device)
} else {
@@ -98,51 +97,110 @@ class BLEServiceInstance {
}
})
})
+}
- discoverAllServicesAndCharacteristicsForDevice = async () =>
- new Promise
@@ -14,13 +14,13 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-clippath)
+> [!TIP] [Github address](https://github.com/react-native-oh-library/react-native-clippath)
-## 安装与使用
+## Installation and Usage
Find the matching version information in the release address of a third-party library:[@react-native-oh-tpl/react-native-clippathview Releases](https://github.com/react-native-oh-library/react-native-clippath/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:
@@ -39,7 +39,7 @@ yarn add @react-native-oh-tpl/react-native-clippathview
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
```jsx
import { View, Text, ScrollView } from "react-native";
@@ -62,25 +62,25 @@ export default function index() {
}
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-clippathview Releases](https://github.com/react-native-oh-library/react-native-clippath/releases)
+Check the release version information in the release address of the third-party library:[@react-native-oh-tpl/react-native-clippathview Releases](https://github.com/react-native-oh-library/react-native-clippath/releases)
-## 使用 Codegen
+## Use Codegen
-本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/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
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -91,18 +91,18 @@ export default function index() {
}
```
-### 2.引入原生端代码
+### 2.Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+1. (Recommended) Use the HAR file.
+2. Directly link to the source code.
-方法一:通过 har 包引入
+Method 1 (recommended): Use the HAR file.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
+> [!TIP] The HAR file is stored in the harmony directory in the installation path of the third-party library.
-打开 `entry/oh-package.json5`,添加以下依赖
+Open entry/oh-package.json5 file and add the following dependencies:
```json
"dependencies": {
@@ -111,22 +111,22 @@ export default function index() {
}
```
-点击右上角的 `sync` 按钮
+Click the sync button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see[Directly Linking Source Code](/en/link-source-code.md)
-### 3.在 ArkTs 侧引入 ClipPath 组件
+### 3.Introducing ClipPath component to Arkts
-找到 **function buildCustomComponent()**,一般位于 `entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets`,添加:
+Find * * function buildCustoms Component () * *, usually located in ` entry/src/main/ets/pages/index. ets ` or ` entry/src/main/ets/rn/LoadBundle. ets `, and add the following code:
```diff
...
@@ -152,9 +152,9 @@ function buildCustomComponent(ctx: ComponentBuilderContext) {
...
```
-### 4.在 ArkTs 侧引入 ClipPathPackage
+### 4. Introducing ClipPathPackage to ArkTS
-打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
import type {RNPackageContext, RNPackage} from 'rnoh/ts';
@@ -169,63 +169,63 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
}
```
-### 5.运行
+### 5.Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 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 |
| -------------------- | ------------------------------------------------------------ | ----------------- | -------- | ----------- | ----------------- |
-| svgKey | 唯一 key | string | No | iOS/Android | Yes |
-| d | 形状由一系列命令定义(svg path data) | string | No | iOS/Android | Yes |
-| viewBox | 定义用户空间中的位置和维度 | Arrayreact-native-clippathview