Skip to content

SortableList sorting breaks when inside a ScrollView and list is longer than screen #89

@jcurtis

Description

@jcurtis

Any ideas on how to go about this?

I need to have my entire SortableList inside a ScrollView along with some other elements. Sorting works fine up until the point where there are enough rows to push past the bottom of the screen. This makes the container ScrollView activate and breaks any kind of sorting.

<ScrollView>
  <View>{someStuff}</View>
  <CardView>
    <SortableList {...blah}/>
    <View>{moreStuff}</View>
  </CardView>
</ScrollView>

I was thinking of possibly adding renderHeader which would act similar to renderFooter except on top. Unfortunately due to the UX requirements it's not quite possible since the list and footer need to be inside a CardView with an elevation specified and the header needs to be outside of it. I need the entire view to scroll when dragging something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions