-
Notifications
You must be signed in to change notification settings - Fork 579
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
fix(ONYX-1383): some artwork rail images get mangled after horizontal scrolling #11207
fix(ONYX-1383): some artwork rail images get mangled after horizontal scrolling #11207
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was setting the height and width not enough to fix things inside PrefetchFlashList
? Can we avoid migrating the PrefetchFlatList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice :)
@MounirDhahri we had to migrate to another issue that using flatlist over flashlist is fixed with this PR is that the flatlist draws the elements way faster (in android) vs flashlist for some reason. The layout issues were the fix for the second issue mentioned here |
Thanks @gkartalis for explaining! Setting the height and width not enough to fix things inside PrefetchFlashList did not work, unfortunately |
thanks for explaing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏🏽 🙏🏽
…l-images-get-mangled-after-horizontal-scrolling
This PR resolves ONYX-1383
Description
Use flatList instead of FlashList on artwork rails
Follow-up on #11142: The max and min width for the artwork rail card were missing. Adding these constraints resolved the issue where the metadata was stretched to its full width. More details: https://artsy.slack.com/archives/C02BAQ5K7/p1732116471982649
Summary after the bug investigation: https://artsy.slack.com/archives/C02BAQ5K7/p1732102644251849
Screenshots confirming that the layout of the artwork rail card is not broken when using FlatList
Screen.Recording.2024-11-27.at.14.37.23.mov
PR Checklist
To the reviewers 👀
Changelog updates
Changelog updates
Cross-platform user-facing changes
iOS user-facing changes
Android user-facing changes
Dev changes
Need help with something? Have a look at our docs, or get in touch with us.