Replies: 1 comment 3 replies
-
I think you just need to remove width: "31%" from your image style. FlatList wraps three items in one while FlashList treats them as individual items and you resize by overriding spans. This is when numColumns > 1 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using a regular flatlist and was looking to possibly use FlashList as a drop in replacement, but I can see it's not that easy, because the styles for a flatlist don't match up at all. I have this very simple grid image view, that I was using a flat list for, and it plainly doesn't work with a FlashList.
Code:
Now the expected behavior is that I get a neat gride with 3 columns that all more or less take 33% of the screen. However, what I get instead is just 3 small left aligned pictures. So instead of this:
, when I swap to a FlashList, I instead get this
Why is that?
Beta Was this translation helpful? Give feedback.
All reactions