Skip to content

Commit

Permalink
fix: delete panGestureHandlerProps and replace it with onConfigurePan…
Browse files Browse the repository at this point in the history
…Gesture

Change the way of PanGestureHandler modification from panGestureHandlerProps to
onConfigurePanGesture.

BREAKING CHANGE: PanGestureHandlerProps has been delete, substitute with onConfigurePanGesture.

fix #465
  • Loading branch information
dohooo committed Dec 3, 2023
1 parent c7be6b7 commit 978b59f
Show file tree
Hide file tree
Showing 41 changed files with 1,493 additions and 2,334 deletions.
15 changes: 15 additions & 0 deletions .changeset/poor-pets-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'react-native-reanimated-carousel': patch
---

feat: change the way of PanGestureHandler modification from panGestureHandlerProps to onConfigurePanGesture.

e.g.

```tsx
<Carousel
onConfigurePanGesture={gestureChain => {
gestureChain.activeOffsetX([-10, 10])
}}
/>
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Check out [the documentation website](https://reanimated-carousel.dev).
| <a href="./example/app/src/pages/left-align/index.tsx">left-align</a> |


> You can make cool animations with custom animation API [[Details]](./docs/custom-animation.md)
> You can make cool animations with custom animation API [[Details]](https://reanimated-carousel.dev/custom-animations)
| <img src="assets/advanced-parallax.gif"/> | <img src="assets/pause-advanced-parallax.gif"/> | <img src="assets/scale-fade-in-out.gif"/> |
| :-----------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------: |
Expand Down
202 changes: 0 additions & 202 deletions README.zh-CN.md

This file was deleted.

Loading

0 comments on commit 978b59f

Please sign in to comment.