From d36aa2e49317bb7e6d2d511322afe03e59e7e2a1 Mon Sep 17 00:00:00 2001 From: wangyingjun01 Date: Thu, 12 Jun 2025 15:50:08 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ICEPHV]=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=20react-native-image-pan-zoom=E6=8C=87=E5=AF=BC?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=9A=84=E4=BD=BF=E7=94=A8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=8E=E8=8B=B1=E6=96=87=E6=96=87=E6=A1=A3=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangyingjun01 --- en/react-native-image-pan-zoom.md | 22 ++++++++++++++++------ zh-cn/react-native-image-pan-zoom.md | 9 +++++++++ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/en/react-native-image-pan-zoom.md b/en/react-native-image-pan-zoom.md index a051dfdd..ca22d6ef 100644 --- a/en/react-native-image-pan-zoom.md +++ b/en/react-native-image-pan-zoom.md @@ -134,21 +134,31 @@ ImageZoom | `onPanResponderTerminationRequest` | Override onPanResponderTerminationRequest behavior | () => boolean | NO | ALL | YES | | `useHardwareTextureAndroid` | for disabling rendering to hardware texture on Android | boolean | NO | Android | NO | + + +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| --------- | ---------------------------------------------- | ------ | -------- | ----------- | ----------------- | +| reset | Reset the position and the scale of the image | () => void | NO | iOS/Android | YES | +| resetScale | Reset the scale of the image | () => void | NO | iOS/Android | YES | +| centerOn | Centers the image in the position indicated. ICenterOn={ x: number, y: number, scale: number, duration: number } | ICenterOn | NO | iOS/Android | YES | + + + ## Known Issues -- [x] 双指缩放在 harmony 框架侧不支持使用 [issues#1](https://github.com/react-native-oh-library/react-native-image-zoom/issues/1) +- [x] Two-finger pinch-to-zoom is not supported on the Harmony framework side [issues#1](https://github.com/react-native-oh-library/react-native-image-zoom/issues/1) -- [x] 长按图片后,rn 框架图片拖拽 Properties 导致程序崩溃 [issues#2](https://github.com/react-native-oh-library/react-native-image-zoom/issues/2) +- [x] After long-pressing an image, the app crashes due to image drag properties in the React Native (RN) framework [issues#2](https://github.com/react-native-oh-library/react-native-image-zoom/issues/2) -- [x] onPanResponderTerminationRequest 方法,harmony 端与 android 端表现不一致 [issues#3](https://github.com/react-native-oh-library/react-native-image-zoom/issues/3) +- [x] The onPanResponderTerminationRequest method behaves inconsistently between the Harmony and Android platforms [issues#3](https://github.com/react-native-oh-library/react-native-image-zoom/issues/3) ## Others -- 下滑图片,然后双击放大,再次下滑表现异常,已在源库基础上修改[上库地址](https://github.com/react-native-oh-library/react-native-image-zoom),源库已被存档,不能新建 issue,特此记录 +- Swiping down on an image, then double-tapping to zoom in, and swiping down again results in abnormal behavior. Modifications have been made based on the original repository[repository link](https://github.com/react-native-oh-library/react-native-image-zoom).The original repository has been archived, so new issues cannot be created. This is being documented here for reference. -- onDragLeft 此回调函数源码未实现,详见:[issues#103](https://github.com/ascoders/react-native-image-zoom/issues/103) +- The onDragLeft callback function is not implemented in the source code. For details, see:[issues#103](https://github.com/ascoders/react-native-image-zoom/issues/103) -- useHardwareTextureAndroid 此 Properties 仅 Android 生效 +- The useHardwareTextureAndroid property only takes effect on Android ## License diff --git a/zh-cn/react-native-image-pan-zoom.md b/zh-cn/react-native-image-pan-zoom.md index a94a3b11..ecfcbc4a 100644 --- a/zh-cn/react-native-image-pan-zoom.md +++ b/zh-cn/react-native-image-pan-zoom.md @@ -132,6 +132,15 @@ ImageZoom | `onPanResponderTerminationRequest` | Override onPanResponderTerminationRequest behavior | () => boolean | NO | ALL | YES | | `useHardwareTextureAndroid` | for disabling rendering to hardware texture on Android | boolean | NO | Android | NO | + +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| --------- | ---------------------------------------------- | ------ | -------- | ----------- | ----------------- | +| reset | Reset the position and the scale of the image | () => void | NO | iOS/Android | YES | +| resetScale | Reset the scale of the image | () => void | NO | iOS/Android | YES | +| centerOn | Centers the image in the position indicated. ICenterOn={ x: number, y: number, scale: number, duration: number } | ICenterOn | NO | iOS/Android | YES | + + + ## 遗留问题 - [x] 双指缩放在 harmony 框架侧不支持使用 [issues#1](https://github.com/react-native-oh-library/react-native-image-zoom/issues/1) -- Gitee