Replies: 3 comments
-
|
Oops, I hadn't seen this before! I think that should work just fine. In 1.0 the estimatedItemSize isn't needed anymore, so it should be all good. It would be ideal for perf to have a |
Beta Was this translation helpful? Give feedback.
-
|
I’ve been thinking about starting this discussion. Thank you @ak-specto for this. I implemented something like this using FlashList: https://gist.github.com/BalogunofAfrica/15e3ed757b6dcb730e106cc7623ddea0 The Shopify team also confirmed that they do use something similar internally in this tweet https://x.com/naqvitalha/status/1641790541636702210?s=46 and this blog https://shopify.engineering/improving-shopify-app-s-performance. It would be a nicety to have an official implementation exposed from LegendList(and FlashList). |
Beta Was this translation helpful? Give feedback.
-
|
Just wanted to let you know that now I also received an answer from Talha Naqvi (Shopify staff engineer) about the usage of LazyScrollView - if that helps Shopify/flash-list#1662 we can close this discussion, thanks :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Implementing huge dynamic screens with ScrollView is some of the times painful, since ScrollView renders everything instantly and if the screen has many different components that can drop performance.
Has anyone tried implementing LegendList as a scrollview alternative, that can render different components?
An example:
the only issue I see is that we couldn't really handle estimatedItemSize since the height of the components will be all over the place. I am replacing FlatList on some old projects with LegendList and it worked perfectly, but now only ScrollViews are left, and I am unsure how to tackle them.
Beta Was this translation helpful? Give feedback.
All reactions