Skip to content

Conversation

@dohooo
Copy link
Owner

@dohooo dohooo commented Dec 12, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

[email protected]

Minor Changes

  • #873 ffb59aa Thanks @dohooo! - # Deprecate width/height props in favor of style-based sizing

    Changes

    Deprecated Props

    • width and height props are now deprecated. Use style={{ width: ..., height: ... }} instead
    • defaultScrollOffsetValue is deprecated in favor of scrollOffsetValue

    New Behavior

    • Carousel now prioritizes dimensions from style prop over legacy width/height props
    • When both style and legacy props are provided, style takes precedence

    Migration

    Before (v4 style):

    <Carousel width={300} height={200} />

    After (v5 style):

    <Carousel style={{ width: 300, height: 200 }} />

    Scroll offset:

    // Before
    <Carousel defaultScrollOffsetValue={sharedValue} />
    
    // After
    <Carousel scrollOffsetValue={sharedValue} />

    Notes

    • Legacy props remain functional for backwards compatibility
    • Console warnings will guide migration in development mode
    • Full removal planned for next major version

@vercel
Copy link

vercel bot commented Dec 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-native-reanimated-carousel Ready Ready Preview Comment Dec 12, 2025 7:49am

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 12, 2025
@dosubot
Copy link

dosubot bot commented Dec 12, 2025

Related Documentation

Checked 1 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.00%. Comparing base (ffb59aa) to head (3e30ec0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #874      +/-   ##
==========================================
+ Coverage   81.90%   82.00%   +0.09%     
==========================================
  Files          35       35              
  Lines        1006     1006              
  Branches      339      339              
==========================================
+ Hits          824      825       +1     
  Misses         81       81              
+ Partials      101      100       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dohooo dohooo merged commit 8da1e93 into main Dec 12, 2025
6 checks passed
@dohooo dohooo deleted the changeset-release/main branch December 12, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants