You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it good idea to use a Skia draw in list components? Like FlashList., FlatList or ScrollView ?
I tested this scenario, i draw a path with gradient colors and used it as. border on my FlashList, which has 200 images with pagination. I use FastImage as image component. And each time i render 20 images, once i reach to 5th / 6th page the app starting to get slow...
I check the memory usage it is around 40 / 50MB...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it good idea to use a Skia draw in list components? Like FlashList., FlatList or ScrollView ?
I tested this scenario, i draw a path with gradient colors and used it as. border on my FlashList, which has 200 images with pagination. I use FastImage as image component. And each time i render 20 images, once i reach to 5th / 6th page the app starting to get slow...
I check the memory usage it is around 40 / 50MB...
If i keep scrolling, it gets even worse..
This is the component that i draw on each item...
As you can see i tested with and without BoxShadow. Ofc, its affecting the performance but without the shadows the app still remains slow...
Thats why i am asking is it a good idea to draw a Canvas on each item?
Beta Was this translation helpful? Give feedback.
All reactions