Skip to content

Commit c2ecdca

Browse files
release: version packages (beta) (#876)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 79ae0e6 commit c2ecdca

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

.changeset/pre.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
},
77
"changesets": [
88
"blue-news-stare",
9+
"fix-flex-gesture-blocking",
910
"fix-nonloop-overdrag-visible-ranges",
1011
"fix-nonloop-overscroll",
1112
"fix-pagination-accessibility",
13+
"fix-web-worklets-error",
1214
"honest-baboons-sip",
1315
"odd-news-carry",
1416
"style-based-sizing"

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# react-native-reanimated-carousel
22

3+
## 5.0.0-beta.3
4+
5+
### Patch Changes
6+
7+
- [#878](https://github.com/dohooo/react-native-reanimated-carousel/pull/878) [`79ae0e6`](https://github.com/dohooo/react-native-reanimated-carousel/commit/79ae0e615edf78fd455a72a726024b6d08ca10c8) Thanks [@dohooo](https://github.com/dohooo)! - # Fix gesture blocking when using flex-based sizing
8+
9+
## Bug Fixes
10+
11+
### Gesture Blocking with `flex: 1`
12+
13+
Fixed an issue where gestures were blocked or delayed when using `style={{ flex: 1 }}` instead of explicit `width`/`height` props.
14+
15+
**Root Cause:** Race condition between `sizeReady` (SharedValue, updates immediately on UI thread) and `size` (React state, updates asynchronously). When `sizeReady` became `true`, the React state `size` was still `0`, causing gesture handlers to incorrectly block input.
16+
17+
**Solution:** All worklet functions now use `resolvedSize.value` (SharedValue) instead of React state `size` to ensure consistent synchronization on the UI thread.
18+
19+
### itemWidth/itemHeight Not Working
20+
21+
Fixed an issue where `itemWidth`/`itemHeight` props were being ignored - items rendered at container width instead of the specified item dimensions.
22+
23+
**Root Cause:** `ItemLayout.tsx` was prioritizing `style.width` over `itemWidth` prop.
24+
25+
**Solution:** Now correctly prioritizes explicit `itemWidth`/`itemHeight` props for item sizing.
26+
27+
## Affected Files
28+
29+
- `src/components/ScrollViewGesture.tsx` - Fixed race condition in gesture handlers
30+
- `src/components/ItemLayout.tsx` - Fixed itemWidth/itemHeight priority
31+
32+
- [#875](https://github.com/dohooo/react-native-reanimated-carousel/pull/875) [`13861ac`](https://github.com/dohooo/react-native-reanimated-carousel/commit/13861acb21925709569e9f5e39a188e1d03df858) Thanks [@dohooo](https://github.com/dohooo)! - Fix web documentation examples crash by upgrading react-native-worklets from 0.5.1 to 0.5.2. This resolves the "createSerializableObject should never be called in JSWorklets" error that occurred on web platform.
33+
334
## 5.0.0-beta.2
435

536
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-reanimated-carousel",
3-
"version": "5.0.0-beta.2",
3+
"version": "5.0.0-beta.3",
44
"packageManager": "yarn@4.0.2",
55
"description": "Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.",
66
"author": "Doho <zhaodonghao586@outlook.com> (https://github.com/dohooo)",

0 commit comments

Comments
 (0)