Skip to content

Items overlap in FlashList v2 #1797

@cletter7

Description

@cletter7

Current behavior

Trying to migrate to v2 (2.0.0-rc.12) and having issues with items being overlapped (for some items only). I am working on the Bible app and items (chapters) are sometimes very different in size.

For example, in the book of Psalms there are 150 psalms in total and there are psalms with just a few verses, but there are also psalms with 170+ verses. When trying to scroll to some items (i.e. user tries to navigate to a specific psalm) I see some items being rendered on top of each other. This happens quite consistently and is a major problem.

In v1 I was using size estimates and didn't have such problem.

Image

Expected behavior

Items are rendered one after another without overlap.

To Reproduce

The code is not public at the moment and I don't have an example app to reproduce the issue. I can try creating one if that proves to be necessary, but I hope someone knows what might be the issue.

Platform:

  • iOS
  • Android

Environment

@shopify/flash-list: 2.0.0-rc.12
react-native: 0.80.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv2.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions