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

Feature: Masonry Layout #23

Open
anudit opened this issue Nov 28, 2024 · 2 comments
Open

Feature: Masonry Layout #23

anudit opened this issue Nov 28, 2024 · 2 comments

Comments

@anudit
Copy link

anudit commented Nov 28, 2024

Hey, Awesome work with Legend List! Is there planned support for https://shopify.github.io/flash-list/docs/guides/masonry? This will allow us to drop FlashList entirely.

@jmeistrich
Copy link
Contributor

I'm not planning to add it for v1 - trying to keep scope small to release a stable v1 asap. But then we could look into it after.

But if you (or someone else) want to PR it, I would be glad to test it and merge it in :).

Just one caveat - I'd like to keep it separate from the core and at a different export path, to keep the core bundle size low. So I think it could be exported at /masonry to be imported like import { MasonryLegendList } from "@legendapp/list/masonry". But you can just PR it as a separate file and I can take care of the package.json` for the exports (I did a lot of that in Legend State).

@anudit
Copy link
Author

anudit commented Jan 16, 2025

@jmeistrich LegendList definitely feels faster than FlashList, numColumns works well too.

Example image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants