Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
"initialVersions": {
"react-native-reanimated-carousel": "4.0.3"
},
"changesets": []
"changesets": [
"honest-baboons-sip"
]
}
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# react-native-reanimated-carousel

## 5.0.0-beta.0

### Major Changes

- [#850](https://github.com/dohooo/react-native-reanimated-carousel/pull/850) [`9b388e6`](https://github.com/dohooo/react-native-reanimated-carousel/commit/9b388e6f6237126c4ed25c2442c4b788aad7adf6) Thanks [@dohooo](https://github.com/dohooo)! - # 🎯 Support for Expo 54 & Dynamic Sizing

## ✨ Major Features

### Dynamic Sizing Support

- **Auto-sizing**: `width` and `height` props are now optional. Carousel automatically measures container dimensions via layout

### Expo 54 Compatibility

- Full support for Expo SDK 54
- Updated dependencies for latest React Native ecosystem

## 💥 Breaking Changes

### Dependencies Update Required

- **react-native-reanimated**: Upgrade to `^4.1.0` (was `^3.0.0`)
- **react-native-worklets**: New peer dependency `^0.5.1` required
- **react-native-gesture-handler**: Minimum version `^2.9.0` (no breaking changes)

### Migration Steps

1. Upgrade Reanimated: `npm install react-native-reanimated@^4.1.0`
2. Install Worklets: `npm install react-native-worklets@^0.5.1`
3. Follow Reanimated 4.0 migration guide for any breaking changes

## 🔧 Technical Improvements

- Replaced deprecated `runOnJS` with `scheduleOnRN` from react-native-worklets
- Enhanced test coverage for dynamic sizing scenarios
- Improved overscroll protection logic
- Better error handling for edge cases

## 📚 Documentation

- Updated installation guide with new dependency requirements
- Added migration guide from v4 to v5
- Enhanced examples showcasing dynamic sizing capabilities

**Fixes**: #668 - Auto height calculation support

## 4.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-reanimated-carousel",
"version": "4.0.3",
"version": "5.0.0-beta.0",
"packageManager": "[email protected]",
"description": "Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.",
"author": "Doho <[email protected]> (https://github.com/dohooo)",
Expand Down