Skip to content

inverted option causing sticky headers, ListEmptyComponent to appear inverted, and causing scroll direction to be inverted on web #1511

@mtourj

Description

@mtourj

Current behavior

Currently, enabling inverted on FlashList causes three issues:

  • Sticky headers appear inverted (upside down)
  • ListEmptyComponent appears inverted
  • Scroll direction is inverted on web

I've created a pull request #1487 that resolves these issues.

Expected behavior

I expect inverted to work the same way it does in regular FlatLists, without inverting the rendered content in sticky headers and empty components, and without inverting the scroll direction in browsers.

To Reproduce

Simply set inverted on a FlashList, and set sticky headers or ListEmptyComponent, and observe that they are rendered upside-down. And on the web, your scroll direction will be inverted.

Platform:

  • iOS
  • Android
  • Web

Environment

Latest

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