Replacing react-native's Image
with react-native-skia's one, is it a good or bad idea?
#1375
-
I'm considering writing something like 'react-native-fast-image' to replace I think that it can be achieved with react-native-skia. However, I'm so worried about the performance of this idea. I barely know anything about the internals of Skia. So I'm not sure if this idea is good or bad. I'll use the new component for image rendering all over my application. In short, is the composition of I'll start to write a PoC of this idea now and let you know what happens. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's an interesting question. The short answer is that it's definitely worth trying but you might run into issues. There are some open questions there since we are not deep into this topic at the moment. You can build an image component with Skia. Using our declarative (UI Thread rendering API). Skia might be a great library to prototype an amazing image component that is perfectly consistent between iOS and Android. |
Beta Was this translation helpful? Give feedback.
That's an interesting question. The short answer is that it's definitely worth trying but you might run into issues. There are some open questions there since we are not deep into this topic at the moment.
You can build an image component with Skia. Using our declarative (UI Thread rendering API).
Some customisations or the image loading logic may rely on the JS thread however.
This may change in the future however.
Skia might be a great library to prototype an amazing image component that is perfectly consistent between iOS and Android.
To make it work perfectly work on the field, we expect some extra work to be needed.