Replies: 4 comments 2 replies
-
Hey @GNUGradyn! I haven't implemented this functionality for the sortable flex component yet. I was quite busy recently and didn't have time to finish this up. I hope I will find some time in the next days and figure out a proper implementation for this feature. |
Beta Was this translation helpful? Give feedback.
-
I manually merged these changes into the latest version (with a couple fixes along the way) and it works as well as I think it logically can with this layout. The issue is it is impossible for any element to be truly "fixed" in this layout unless there are no draggable elements between it and the beginning or the end. This is because the layout does not expect elements to be the same size so the layout must shift. It works for what I'm doing which is keeping a non draggable item at the end. Perhaps it could only allow fixed layout for flex if all fixed items are either at the beginning or the end, or in other words there are no movable items between a draggable and either the beginning or the end of the flex list? This is the only way I can think of that does not feel super confusing to interact with. Or alternatively it could be left as-is and when there are fixed components that are not tethered to the front or end of the list it could give a warning that this configuration is likely to cause unexpected behavior? |
Beta Was this translation helpful? Give feedback.
-
I have finally released a new version that adds support for fixed items in the flex component. Sorry for the long delay. |
Beta Was this translation helpful? Give feedback.
-
Legend, thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I'm trying to make a UI like this

They can be drag-sorted and the add button can be used to add a new entry when in this mode. The widths are variable and it is a wrapped list so im using flex layout. However when trying to wrap all the items (including add) in handles and enabling customHandle on the sortable component, I get this error for the add button when the add button is set to fixed
ReanimatedError: [react-native-sortables] Fixed items are not yet supported in flex layout, js engine: reanimated
Sounds like it is not implemented yet. Just creating this to let you know it is wanted and track progress
Beta Was this translation helpful? Give feedback.
All reactions