Skip to content

Impossible to set specific height of a FlashList to maintain scroll in case of few items #1504

Open
@RohovDmytro

Description

@RohovDmytro
  1. My list might have a few items.
  2. To make my header animations works I must have have scroll even if there are few items.
  3. Scrolling up in that case will enable my animations to work properly.
  4. The problem when there is only a few items I can't scroll.
  5. I can force the FlashList to keep scroll by adding Header of Footer component with proper height, but it's impossible (?) to maintain its height that when list items are added or removed without isssues with layout. I cant update Header/Footer height after an item is added or removed, but not at the same time.

Basically, I found not way to keep list scrollable even if there are few items.

Another way to describe this is I need to have an ability to make the list scrollable so the scrollable area will match the height of the screen + X specific height.

The goal is to have a scroll tight to animation of the header. Few items => No scroll => Can't collapse header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions