Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flashlist buggy rendering single item on horizontal lists [iOS only] #1327

Open
1 of 2 tasks
rafael-rollo opened this issue Aug 22, 2024 · 1 comment
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@rafael-rollo
Copy link

Current behavior

Apparently, the implementation has an issue handling the list item when only one item is rendered. The problem occurs only in some devices on the iOS platform and when the estimated item size is equal to the actual rendered size. Strangely, any value - lower or higher than the actual one - for the estimate fixes the issue.

Video with the reproduction. A single card on a horizontal can't be pressed at the first render.

When this happens, usually in the first render, the list item is rendered weirdly (images below), and the user can't interact with it appropriately.

Image with the inspector showing the strange rendering behavior

Card layer not accessible when the estimate exactly matches the size

Image with the inspector showing the properly rendering behavior

Card layer accessible when the estimate differs from the actual size

Expected behavior

The single item should be rendered properly and become interactive.

To Reproduce

Use the repo on rafael-rollo/flashlist-issue-repro

Platform:

  • iOS
  • Android

Environment

@shopify/flash-list: "^1.7.1"

@rafael-rollo rafael-rollo added the bug Something isn't working label Aug 22, 2024
@WKampel
Copy link

WKampel commented Oct 28, 2024

Reproduced on ios in a vertical flashlist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants