|
1 | 1 | # react-native-reanimated-carousel
|
2 | 2 |
|
| 3 | +## 4.0.0 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- [#444](https://github.com/dohooo/react-native-reanimated-carousel/pull/444) [`56e20c8`](https://github.com/dohooo/react-native-reanimated-carousel/commit/56e20c80163bc42fe59fcfb6476ae6b3a345ad4b) Thanks [@dohooo](https://github.com/dohooo)! - feat: use new RNGH api |
| 8 | + |
| 9 | + Updates `react-native-gesture-handler` to `>=2.9.0` and replaces usage of `useAnimatedGestureHandler` with the [new gesture handler API](https://docs.swmansion.com/react-native-gesture-handler/docs/#rngh-20) which supports the [new gesture handler web implementation](https://github.com/software-mansion/react-native-gesture-handler/pull/2157). |
| 10 | + |
| 11 | +### Minor Changes |
| 12 | + |
| 13 | +- [#507](https://github.com/dohooo/react-native-reanimated-carousel/pull/507) [`c6d58e5`](https://github.com/dohooo/react-native-reanimated-carousel/commit/c6d58e5f099145b1d74a18c4b73a5d3dc1c515e3) Thanks [@dohooo](https://github.com/dohooo)! - Support to fix the scroll direction through new API, fixedDirection. |
| 14 | + |
| 15 | +### Patch Changes |
| 16 | + |
| 17 | +- [#687](https://github.com/dohooo/react-native-reanimated-carousel/pull/687) [`55c55ff`](https://github.com/dohooo/react-native-reanimated-carousel/commit/55c55ff8304159ab2949b0335ac34411030b94b7) Thanks [@dohooo](https://github.com/dohooo)! - feat: Add containerStyle prop to control the container styles. |
| 18 | + |
| 19 | +- [`d5de105`](https://github.com/dohooo/react-native-reanimated-carousel/commit/d5de105b977c9a2b578e97cce663d10a6bf1214f) Thanks [@dohooo](https://github.com/dohooo)! - Added missing dependencies for web to work |
| 20 | + |
| 21 | +- [#507](https://github.com/dohooo/react-native-reanimated-carousel/pull/507) [`353fdce`](https://github.com/dohooo/react-native-reanimated-carousel/commit/353fdce59c1b38796801e4180f6ac8dde879f936) Thanks [@dohooo](https://github.com/dohooo)! - remove postinstall script. |
| 22 | + |
| 23 | +- [#666](https://github.com/dohooo/react-native-reanimated-carousel/pull/666) [`2982fcd`](https://github.com/dohooo/react-native-reanimated-carousel/commit/2982fcdcfa42852f96198f2e8e9cda48a617c705) Thanks [@dohooo](https://github.com/dohooo)! - fix: typescript error where MeasuredDimension can be null |
| 24 | + |
| 25 | +- [#677](https://github.com/dohooo/react-native-reanimated-carousel/pull/677) [`00c948b`](https://github.com/dohooo/react-native-reanimated-carousel/commit/00c948bca03ab1aeeaff97e5f077b1b4cd61e2e4) Thanks [@nmassey](https://github.com/nmassey)! - fix Pagination.Basic and Pagination.Custom usage of TouchableWithoutFeedback. |
| 26 | + This fixes press event handler not working correctly. (Thanks to @qwertychouskie for reporting!) |
| 27 | + |
| 28 | +- [#672](https://github.com/dohooo/react-native-reanimated-carousel/pull/672) [`5fa78a7`](https://github.com/dohooo/react-native-reanimated-carousel/commit/5fa78a765116d155b3fd0fabc83576e1403f13e1) Thanks [@dohooo](https://github.com/dohooo)! - revert autoPlay changes |
| 29 | + |
| 30 | +- [#600](https://github.com/dohooo/react-native-reanimated-carousel/pull/600) [`d9557b2`](https://github.com/dohooo/react-native-reanimated-carousel/commit/d9557b21c4f275ea4ccbfa9cfd5d585464979ae8) Thanks [@dohooo](https://github.com/dohooo)! - Fixed an issue where endWithSpring used outdated data from useSharedValue after onGestureEnd, causing incorrect carousel behavior on direction reversal. |
| 31 | + |
| 32 | +- [`85f24e7`](https://github.com/dohooo/react-native-reanimated-carousel/commit/85f24e79282e966e781b3200d2f6ed9c1de77f6e) Thanks [@dohooo](https://github.com/dohooo)! - Type error property push does not exist on type |
| 33 | + |
| 34 | +- [#517](https://github.com/dohooo/react-native-reanimated-carousel/pull/517) [`9f3a3d6`](https://github.com/dohooo/react-native-reanimated-carousel/commit/9f3a3d6be31a251528fce89613b6308c5382fa93) Thanks [@dohooo](https://github.com/dohooo)! - Reduce the amount of work done when rendering data. |
| 35 | + |
| 36 | +- [#496](https://github.com/dohooo/react-native-reanimated-carousel/pull/496) [`fdeef6b`](https://github.com/dohooo/react-native-reanimated-carousel/commit/fdeef6bd8355de80ea8cdb1cb334a4228819d4d2) Thanks [@dohooo](https://github.com/dohooo)! - re-calculate when window size changed in browser. |
| 37 | + |
| 38 | +- [#597](https://github.com/dohooo/react-native-reanimated-carousel/pull/597) [`0d2b930`](https://github.com/dohooo/react-native-reanimated-carousel/commit/0d2b930f394f65fd70a03593ea8c7b16fb552e62) Thanks [@dohooo](https://github.com/dohooo)! - Adds Pagination Component |
| 39 | + |
| 40 | +- [#666](https://github.com/dohooo/react-native-reanimated-carousel/pull/666) [`32c8c36`](https://github.com/dohooo/react-native-reanimated-carousel/commit/32c8c36c4f70885f2a49ab9156ce13e674391f4c) Thanks [@dohooo](https://github.com/dohooo)! - Add <Pagination.Custom/> dot animation. |
| 41 | + |
| 42 | +- [#498](https://github.com/dohooo/react-native-reanimated-carousel/pull/498) [`096ac75`](https://github.com/dohooo/react-native-reanimated-carousel/commit/096ac756a28aea1ff771b046282320cdac356af8) Thanks [@dohooo](https://github.com/dohooo)! - re-calculate when window size changed in browser. (re-bump for alpha.3) |
| 43 | + |
| 44 | +- [#577](https://github.com/dohooo/react-native-reanimated-carousel/pull/577) [`17621ca`](https://github.com/dohooo/react-native-reanimated-carousel/commit/17621ca772cc3f166094e1445253f77a0967a201) Thanks [@nmassey](https://github.com/nmassey)! - fix: make gesture onStart/onUpdate/onEnd (et al) callbacks run as worklets again |
| 45 | + |
| 46 | +- [#733](https://github.com/dohooo/react-native-reanimated-carousel/pull/733) [`3040863`](https://github.com/dohooo/react-native-reanimated-carousel/commit/3040863506254b680e1897d2c7ac746ed56f4a39) Thanks [@dohooo](https://github.com/dohooo)! - Add pointerEvents: ‘box-none’ to ItemLayout component to allow touches for children components outside item boundaries |
| 47 | + |
| 48 | +- [#494](https://github.com/dohooo/react-native-reanimated-carousel/pull/494) [`6b849ec`](https://github.com/dohooo/react-native-reanimated-carousel/commit/6b849ecf1ab0ce265278ec6f925b556de4d15353) Thanks [@dohooo](https://github.com/dohooo)! - Removed the reset logic when user change the defaultIndex prop. (We couldn't update the handlerOffset value when user change the defaultIndex. Because the carousel component already be a non-controlled component. So the subsequent changes of defaultIndex will be ignored.) |
| 49 | + |
| 50 | +- [#735](https://github.com/dohooo/react-native-reanimated-carousel/pull/735) [`848f458`](https://github.com/dohooo/react-native-reanimated-carousel/commit/848f45810203d7c77077e041840179412863f0ca) Thanks [@dohooo](https://github.com/dohooo)! - This PR updates the customAnimation function signature to include an index parameter, allowing users to apply custom animations based on the item’s index. |
| 51 | + |
| 52 | +- [#648](https://github.com/dohooo/react-native-reanimated-carousel/pull/648) [`0abdb2d`](https://github.com/dohooo/react-native-reanimated-carousel/commit/0abdb2d51fba1d309a065ed614713d792b6e70a5) Thanks [@nmassey](https://github.com/nmassey)! - fix app crash when using "onProgressChange" prop as function |
| 53 | + |
| 54 | +- [#721](https://github.com/dohooo/react-native-reanimated-carousel/pull/721) [`2a8111e`](https://github.com/dohooo/react-native-reanimated-carousel/commit/2a8111e51762d2d716f4e4dfb18fa38c21b205a6) Thanks [@dohooo](https://github.com/dohooo)! - fix: parallax layout with new arch enabled |
| 55 | + |
| 56 | +- [#492](https://github.com/dohooo/react-native-reanimated-carousel/pull/492) [`978b59f`](https://github.com/dohooo/react-native-reanimated-carousel/commit/978b59f0f2d8a96fe1d1de1a1c9fb205fd051cfb) Thanks [@dohooo](https://github.com/dohooo)! - feat: change the way of PanGestureHandler modification from panGestureHandlerProps to onConfigurePanGesture. |
| 57 | + |
| 58 | + e.g. |
| 59 | + |
| 60 | + ```tsx |
| 61 | + <Carousel |
| 62 | + onConfigurePanGesture={(gestureChain) => { |
| 63 | + gestureChain.activeOffsetX([-10, 10]); |
| 64 | + }} |
| 65 | + /> |
| 66 | + ``` |
| 67 | + |
| 68 | +- [#528](https://github.com/dohooo/react-native-reanimated-carousel/pull/528) [`139d5e5`](https://github.com/dohooo/react-native-reanimated-carousel/commit/139d5e5f7706e1da8800ff10b933d1010835f52f) Thanks [@dohooo](https://github.com/dohooo)! - Exported TAnimationStyle types. |
| 69 | + |
| 70 | +- [#710](https://github.com/dohooo/react-native-reanimated-carousel/pull/710) [`d98bb99`](https://github.com/dohooo/react-native-reanimated-carousel/commit/d98bb999fce8f24b627c0c6b90a1bd2c1150364b) Thanks [@nmassey](https://github.com/nmassey)! - fix: remove shared value access warning from react-native-reanimated |
| 71 | + |
| 72 | +- [#510](https://github.com/dohooo/react-native-reanimated-carousel/pull/510) [`b3cc591`](https://github.com/dohooo/react-native-reanimated-carousel/commit/b3cc591dcee83cf240864051018c4aa8403c3f86) Thanks [@dohooo](https://github.com/dohooo)! - Support to specific direction to auto play. |
| 73 | + |
| 74 | +- [#703](https://github.com/dohooo/react-native-reanimated-carousel/pull/703) [`564d2f5`](https://github.com/dohooo/react-native-reanimated-carousel/commit/564d2f5f63c3b5b934b37e8e643406ea06e1ec7e) Thanks [@dohooo](https://github.com/dohooo)! - Update homepage in package.json |
| 75 | + |
| 76 | +- [#528](https://github.com/dohooo/react-native-reanimated-carousel/pull/528) [`b654f43`](https://github.com/dohooo/react-native-reanimated-carousel/commit/b654f439e905bc1d45f5cbb1fd291f3a82848368) Thanks [@dohooo](https://github.com/dohooo)! - Replaced 'onScrollBegin' with 'onScrollStart' to better match gesture callback. |
| 77 | + |
| 78 | +- [`618d90d`](https://github.com/dohooo/react-native-reanimated-carousel/commit/618d90d772d4fc808d4986f2b4095a23eea5c43e) Thanks [@dohooo](https://github.com/dohooo)! - Loss of precision during arithmetic conversion |
| 79 | + |
| 80 | +- [#576](https://github.com/dohooo/react-native-reanimated-carousel/pull/576) [`a99f069`](https://github.com/dohooo/react-native-reanimated-carousel/commit/a99f069b5c4bace6e0cf42d457d3d3363321dd7f) Thanks [@nmassey](https://github.com/nmassey)! - fix: rework code to avoid possible flicker when starting pan (panOffset race condition) |
| 81 | + |
| 82 | +- [#724](https://github.com/dohooo/react-native-reanimated-carousel/pull/724) [`33022e6`](https://github.com/dohooo/react-native-reanimated-carousel/commit/33022e6e1fa042dffc2ae688b5cc00f62470d713) Thanks [@dohooo](https://github.com/dohooo)! - fix: next item function overscolling with overscrollEnabled is false |
| 83 | + |
| 84 | +- [#689](https://github.com/dohooo/react-native-reanimated-carousel/pull/689) [`f935f7a`](https://github.com/dohooo/react-native-reanimated-carousel/commit/f935f7ae2f052dd0856bb11acc11f0a1945d24a8) Thanks [@dohooo](https://github.com/dohooo)! - Delete unnecessary peer denpendences |
| 85 | + |
| 86 | +- [#510](https://github.com/dohooo/react-native-reanimated-carousel/pull/510) [`b3cc591`](https://github.com/dohooo/react-native-reanimated-carousel/commit/b3cc591dcee83cf240864051018c4aa8403c3f86) Thanks [@dohooo](https://github.com/dohooo)! - Modify the preority of windowSize settings. If you define the windowSize prop, Carousel will ignore the itemsCount. (windowSize > itemsCount) |
| 87 | + |
| 88 | +- [#503](https://github.com/dohooo/react-native-reanimated-carousel/pull/503) [`03dba70`](https://github.com/dohooo/react-native-reanimated-carousel/commit/03dba70a857d6531eceb1ea4d2fd034e3090fe48) Thanks [@dohooo](https://github.com/dohooo)! - remove the postinstall script. |
| 89 | + |
| 90 | +- [#560](https://github.com/dohooo/react-native-reanimated-carousel/pull/560) [`c181174`](https://github.com/dohooo/react-native-reanimated-carousel/commit/c1811746e951ca32bf94bc2acca450fb2e58f55c) Thanks [@dohooo](https://github.com/dohooo)! - Add a new props `minScrollDistancePerSwipe` to set the minimum scroll instance to make carousel scroll. |
| 91 | + |
| 92 | +- [#731](https://github.com/dohooo/react-native-reanimated-carousel/pull/731) [`6e8cdb4`](https://github.com/dohooo/react-native-reanimated-carousel/commit/6e8cdb4c13d447abe48c7529ee5217e39bbd0d14) Thanks [@dohooo](https://github.com/dohooo)! - improve "slow pan" behavior: if it seems that the user intent is to stay on the current page (because they didn't pan very far; maybe they started panning one direction then reversed direction, etc.), _don't_ actually change page upon gesture completion |
| 93 | + |
| 94 | +- [#492](https://github.com/dohooo/react-native-reanimated-carousel/pull/492) [`c015873`](https://github.com/dohooo/react-native-reanimated-carousel/commit/c015873b7a8f4f357b7342c250220ea9968d8b58) Thanks [@dohooo](https://github.com/dohooo)! - Fixed an issue where the enable props couldn't set to false. |
| 95 | + |
3 | 96 | ## 4.0.0-canary.23
|
4 | 97 |
|
5 | 98 | ### Patch Changes
|
|
0 commit comments