Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ted-carousel into main
  • Loading branch information
dohooo committed Nov 1, 2021
2 parents 6744f74 + ff5cab6 commit 3c54b89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -108,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 |
Expand Down
3 changes: 2 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
更新:
- 重构了部分逻辑,滑动动画更加流畅、自然
- timingConfig -> springConfig (此配置不再支持对`duration`属性的配置)
- [...](https://github.com/dohooo/react-native-reanimated-carousel/releases/tag/v1.0.0)

## 原因

Expand Down Expand Up @@ -107,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 | 切换动画结束时触发 |
Expand Down

0 comments on commit 3c54b89

Please sign in to comment.