LegendApp / legend-list

MIT License
464 stars 12 forks source link

Feature: Masonry Layout #23

Open anudit opened 6 days ago

anudit commented 6 days ago

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 commented 4 days ago

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 thepackage.json` for the exports (I did a lot of that in Legend State).