From 20a035689eccc9ec2df924660b434e28fa8d5dec Mon Sep 17 00:00:00 2001 From: dingchenjie Date: Tue, 18 Nov 2025 17:33:30 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=20react-native-reani?= =?UTF-8?q?mated-carousel=20=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3=EF=BC=8C?= =?UTF-8?q?=E7=89=88=E6=9C=AC4.0.2=E5=BA=9F=E5=BC=83onScrollBegin=E5=B9=B6?= =?UTF-8?q?=E6=96=B0=E5=A2=9EonScrollStart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dingchenjie --- zh-cn/react-native-reanimated-carousel.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/zh-cn/react-native-reanimated-carousel.md b/zh-cn/react-native-reanimated-carousel.md index 2d1082c0..d24c5550 100644 --- a/zh-cn/react-native-reanimated-carousel.md +++ b/zh-cn/react-native-reanimated-carousel.md @@ -16,6 +16,11 @@ ## 安装与使用 +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 3.5.1 | [@react-native-ohos/react-native-reanimated-carousel Releases]| 0.72 | +| 4.0.2 | [@react-native-ohos/react-native-reanimated-carousel Releases]| 0.77 | + 进入到工程目录并输入以下命令: @@ -23,13 +28,21 @@ #### **npm** ```bash +# 0.72 npm install react-native-reanimated-carousel@3.5.1 + +# 0.77 +npm install react-native-reanimated-carousel@4.0.2 ``` #### **yarn** ```bash +# 0.72 yarn add react-native-reanimated-carousel@3.5.1 + +# 0.77 +yarn add react-native-reanimated-carousel@4.0.2 ``` @@ -216,7 +229,8 @@ const styles = StyleSheet.create({ | loop | Carousel loop playback | no | true | boolean | All | yes | | testID | Used to locate this view in end-to-end tests | no | | string | All | yes | | onSnapToItem | Callback fired when navigating to an item | no | | (index: number) => void | All | yes | -| onScrollBegin | Callback fired when scroll begin | no | | () => void | All | yes | +| onScrollBegin4.0.2+ deprecated | Callback fired when scroll begin | no | | () => void | All | yes | +| onScrollStart4.0.2+ | Callback fired when scroll start | no | | () => void | All | yes | | onScrollEnd | Callback fired when scroll end | no | | (index: number) => void | All | yes | | withAnimation | Specifies the scrolling animation effect | no | | {type: 'spring';config: WithSpringConfig;} \| {type: 'timing';config: WithTimingConfig;} | All | yes | | panGestureHandlerProps | PanGestureHandler props | no | {} | Omit,'onHandlerStateChange'> | All | yes | -- Gitee