Skip to content
Discussion options

You must be logged in to vote

Hey guys! Sorry for the long delay but I finally released the new version of the library that adds support for the collapsible items. You can refer to this example in the example app to see how it works.

The example might seem a bit complex as it serves the vertical and horizontal grid and also uses a bit different approach on the web as layout animations from Reanimated aren't working well on the web.

In short, to enable collapsible items support, you have to follow these steps:

  1. Add the autoAdjustOffsetDuringDrag prop to the Sortable.Grid component - it enables the calculation of the additional offset added to item when they collapse
  2. Use the React's state to switch between the collapsed…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@devtm1123
Comment options

@iCodePup
Comment options

@MatiPl01
Comment options

Comment options

You must be logged in to vote
2 replies
@iCodePup
Comment options

@devtm1123
Comment options

Comment options

You must be logged in to vote
4 replies
@MatiPl01
Comment options

@devtm1123
Comment options

@devtm1123
Comment options

@MatiPl01
Comment options

Answer selected by MatiPl01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants