Skip to content

Footer lags behind when the last item height changes #1663

Open
@mehranabi

Description

@mehranabi

Current behavior

I have a list that its items can grow larger (expand and collapse). The list also has a Footer component.
When the last item is expanded, sometimes the footer moves late and the item goes behind the footer.

Expected behavior

The footer must be below the last item all the times which is the case in FlatList.
But in FlashList, it sometimes lags behind if the last item height is changed.

To Reproduce

https://snack.expo.dev/@mehranabi/2f3720?platform=ios

If you click on the item multiple times [quickly] you will see that the footer position lags, and the item goes behind the footer.

Here is the exact same code using FlatList and the footer works exactly as expected.
https://snack.expo.dev/@mehranabi/5ede55

Platform:

  • iOS
  • Android

Environment

FlashList 1.7.3
Expo SDK 52

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