diff --git a/zh-cn/react-native-reanimated-carousel.md b/zh-cn/react-native-reanimated-carousel.md index 2d1082c0d04b64d22398915399f0b78a9ec28555..d24c5550a9ce44124a181044c7f12060cdb85684 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 |