From 6856e73753509ab8183c91150717ecb0e380c9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=9D=B1=E6=BE=94?= Date: Sun, 31 Oct 2021 14:50:52 +0800 Subject: [PATCH 1/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3819809b..c6456c7b 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ English | [简体中文](./README.zh-CN.md) Updates: - Reconstructed some logic, sliding animation more smooth, natural - timingConfig -> springConfig (The configuration of the 'duration' property is no longer supported by this configuration) +- [...](https://github.com/dohooo/react-native-reanimated-carousel/releases/tag/v1.0.0) ## Reason From ef4ac3fa698e144af0478b5193ea35a0c18af8cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=9D=B1=E6=BE=94?= Date: Sun, 31 Oct 2021 14:51:12 +0800 Subject: [PATCH 2/4] Update README.zh-CN.md --- README.zh-CN.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.zh-CN.md b/README.zh-CN.md index 0a6af761..475fb69c 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -22,6 +22,7 @@ 更新: - 重构了部分逻辑,滑动动画更加流畅、自然 - timingConfig -> springConfig (此配置不再支持对`duration`属性的配置) +- [...](https://github.com/dohooo/react-native-reanimated-carousel/releases/tag/v1.0.0) ## 原因 From a9fe0ab8fc3cbfbf79f36885e0b098213e555b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=9D=B1=E6=BE=94?= Date: Sun, 31 Oct 2021 14:52:23 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6456c7b..f683728d 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ import Carousel from "react-native-reanimated-carousel"; | parallaxScrollingScale | ❌ | 0.8 | number | When use 'parallax' Layout props,this prop can be control prev/next item scale | | style | ❌ | {} | ViewStyle | Carousel container style | | height | ❌ | '100%' | undefined \| string \| number | Specified carousel container height | -| timingConfig | ❌ | {duration: 250} | Animated.WithTimingConfig | Timing config of translation animated | +| springConfig | ❌ | {damping: 100} | Animated.WithSpringConfig | Spring config of translation animated | | onSnapToItem | ❌ | | (index: number) => void | Callback fired when navigating to an item | | onScrollBegin | ❌ | | () => void | Callback fired when scroll begin | | onScrollEnd | ❌ | | (previous: number, current: number) => void | Callback fired when scroll end | From ff5cab60371ae7552e83cc70f526960615b3fb9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=9D=B1=E6=BE=94?= Date: Sun, 31 Oct 2021 14:52:48 +0800 Subject: [PATCH 4/4] Update README.zh-CN.md --- README.zh-CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.zh-CN.md b/README.zh-CN.md index 475fb69c..96938c87 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -108,7 +108,7 @@ import Carousel from "react-native-reanimated-carousel"; | parallaxScrollingScale | ❌ | 0.8 | number | 当使用 mode=`parallax`,这个属性可以控制两侧图片的缩放比例 | | style | ❌ | {} | ViewStyle | 轮播图容器样式 | | height | ❌ | '100%' | undefined \| string \| number | 指定轮播图容器高度 | -| timingConfig | ❌ | {duration: 250} | Animated.WithTimingConfig | 配置动画效果 | +| springConfig | ❌ | {damping: 100} | Animated.WithSpringConfig | 配置动画效果 | | onSnapToItem | ❌ | | (index: number) => void | 切换至另一张轮播图时触发 | | onScrollBegin | ❌ | | () => void | 切换动画开始时触发 | | onScrollEnd | ❌ | | (previous: number, current: number) => void | 切换动画结束时触发 |