Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2025

Conversation

MatiPl01
Copy link
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
Copy link

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
5 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
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