Skip to content

viewableItems not working correctly with an absolute header #2238

@mydesweb

Description

@mydesweb

Description

I use an absolutely positioned header above my FlashList. I tried setting the offset in stickyHeaderConfig or progressViewOffset to match the header height, but the viewableItems from onViewableItemsChanged still include items that are under the header and should not be considered visible.

Current behavior

viewableItems includes items that aren’t actually visible.

Expected behavior

viewableItems should not include items that are under the header.

FlashList version: 2.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions