Replies: 3 comments 4 replies
-
Can you share your code? I am pretty sure that I tested if it works and it worked fine before. Do you set the |
Beta Was this translation helpful? Give feedback.
-
Really appreciate the quick response. Great library btw, only one I found that wasn't super janky. Here's the rough layout: <ScrollView
horizontal
keyboardShouldPersistTaps="always"
ref={scrollViewRef}
showsHorizontalScrollIndicator={false}
>
<View className="h-10">
<Sortable.Flex
autoScrollActivationOffset={50}
autoScrollDirection="horizontal"
flexWrap="nowrap"
gap={12}
itemEntering={null}
itemExiting={null}
onDragEnd={reorderLogTags}
scrollableRef={scrollViewRef}
>
{tags.data.map((tag) => (
<View className="w-36 flex-row rounded-xl bg-input" key={tag.id}>
<Checkbox
checked={isSelected}
className="size-10"
onCheckedChange={() => toggleLogTag({ id, isSelected, logId })}
/>
<View className="group relative flex-1">
<Input
autoCapitalize="none"
autoComplete="name"
autoCorrect={false}
className="bg-transparent focus:pr-10"
defaultValue={name}
maxLength={16}
multiline={false}
onChangeText={(name) => updateLogTag({ id: id, name })}
placeholder="Tag"
returnKeyType="done"
size="sm"
/>
<Button
accessibilityHint="Removes this tag"
accessibilityLabel={`Remove ${name}`}
className="size-8"
onPress={() => sheetManager.open('tag-delete', id)}
size="icon"
variant="ghost"
wrapperClassName="rounded-full absolute right-1 top-1"
>
<Icon className="text-muted-foreground" icon={X} size={20} />
</Button>
</View>
</View>
))}
</Sortable.Flex>
</View>
</ScrollView> I just tried it with a custom drag handle and that seems to resolve the issue so if you don't have time to dive into this more no worries. |
Beta Was this translation helpful? Give feedback.
-
One more question, this doesnt work on the web browser used on the mobile device? You said that it works fine on iOS but added |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have
Sortable.Flex
inside aScrollView
and when I initiate scrolling from empty space outside of a draggable item, I am able to scroll. However, if I try to start scrolling and my finger happens to land on a draggable item, I can't scroll. It works fine on iOS.Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions