Replies: 1 comment
-
Hello
If it not help here is one ultimate solution - overrideItemLayout prop You can provide precalculated node sizes of each node. But you will need to calculate it before render. If you have stable heights for each type of node then func will simple. Otherwise you will need store this info inside node data. Additionally you can add height prop to your render item component to be sure that your components have height equals to precalculated heights |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
We're somewhat stuck and need the community's brilliant mind to help us find a possible solution—or at least some clarification to better understand the issue.
We're building an app in React Native with an image-heavy feed, using Shopify's ``. Everything works fine except that a quick flash or jump of content happens during scrolling. We’ve tried a bunch of things, but the issue still persists (on both emulator and physical iOS devices).
Does anyone know what we might be missing? And is it even possible to achieve truly optimal scroll performance with
FlashList
in this kind of setup?What we’ve tried so far:
extraData
is implementedestimatedItemSize
:- Precisely calculated and set to 604px
- Tried FlashList’s recommended size (614px)
- Tried reducing to 300px
drawDistance
is set to 2xestimatedItemSize
Would really appreciate any insights!
Environment Info:
Code snippet:
Beta Was this translation helpful? Give feedback.
All reactions