I'm using Sortable.flex with flexDirection: "row", but I’m facing the following issues when the child components are positioned using position: "absolute":
Drag and Auto Scroll Not Working:
When the child is set to absolute position, the drag and auto scroll are not working as expected.
Incorrect Position Adjustment on Drag:
When I use the left value with absolute positioning, after a long press to start dragging, the view shifts further to the left, even though it's already positioned at the left value.
<Sortable.Flex
flexDirection="row"
height={VideoUtils.FRAME_WIDTH}
gap={0}
autoScrollEnabled
autoScrollDirection="horizontal"
width={'fill'}>
{DATA.map((item, index) => (
<View
style={{
position: 'absolute',
left: index * 100, // Initial left position
width: 100,
}}
key={item}>
<Text>{item}</Text>
</View>
))}
</Sortable.Flex>