Skip to content

feat: Customizable dimensions animation type - layout and worklet#355

Merged
MatiPl01 merged 2 commits into
mainfrom
feat/customizable-dimensions-animation-type
Apr 17, 2025
Merged

feat: Customizable dimensions animation type - layout and worklet#355
MatiPl01 merged 2 commits into
mainfrom
feat/customizable-dimensions-animation-type

Conversation

@MatiPl01
Copy link
Copy Markdown
Owner

@MatiPl01 MatiPl01 commented Apr 17, 2025

Description

This PR removes animateHeight and animateWidth props and replaces them with dimensionsAnimationType property. This prop is used for both - height and width animation. It is not just a boolean flag but accepts string these values:

  • 'none' - no animation - default,
  • 'layout' - uses reanimated layout animations for container dimensions animation - more efficient but doesn't influence other components (rendered below, near the sortable component),
  • 'worklet' - worklet-based animations using useAnimatedStyle - less efficient but also affect layout of other views (if other components are rendered below, near the sortable component)

@MatiPl01 MatiPl01 added enhancement New feature or request feature labels Apr 17, 2025
@MatiPl01 MatiPl01 self-assigned this Apr 17, 2025
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
react-native-sortables-docs ⬜️ Ignored (Inspect) Visit Preview Apr 17, 2025 7:08pm

@MatiPl01 MatiPl01 merged commit 1d06c6f into main Apr 17, 2025
3 checks passed
@MatiPl01 MatiPl01 deleted the feat/customizable-dimensions-animation-type branch April 17, 2025 19:11
MatiPl01 pushed a commit that referenced this pull request Apr 27, 2025
# [1.6.0](v1.5.2...v1.6.0) (2025-04-27)

### Bug Fixes

* Column and row count issues ([#354](#354)) ([dd3143e](dd3143e))

### Features

* Customizable dimensions animation type - layout and worklet ([#355](#355)) ([1d06c6f](1d06c6f))
* Item context and docs ([#363](#363)) ([ae212ba](ae212ba))
@MatiPl01
Copy link
Copy Markdown
Owner Author

🎉 This issue has been resolved in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant