Skia React Native for web
Hi , i saw your remotion example using canvaskit-wasm. i want to reuse as much as code possible. is there any way to reuse your skia react native renderer for web?. i would like to contribute also.
We'll will be providing web support but it will take a couple of months.
If you want to use it already, you can reuse the renderer, it will require a bit of tweaking:
- The Skia module is available directly, because wasm load asynchronously you will need to make CanvasKit via a hook and inject it into the redenderer
- Some of our JSI instance are typed arrays in canvaskit. For instance rectangles and rounded rectangles. Colors are typed arrays in canvaskit but numbers in our Skia integration. So slight adaptation needs to be done there.
Let's keep this issue open to keep track of the react native web support.
Hi @wcandillon any updates on web support?
No updates yet, it is something we will start end of Q3/Q2 22
Would love to try and contribute to this if it can be broken down into steps, I will need the feature myself so I can test it out as well.
@Dueen did you find any other way to use this project in web.
Hi @wcandillon any doc example for skia web ?
This is still a work in progress; stay tuned. If you run the example app with yarn web, it should work as expected. We are still fixing issues there.
awesome man !! eagerly waiting.