react-native-dom
react-native-dom copied to clipboard
Modularize view rendering to support alternative/parallel renderers (such as WebGL)
Nice work on react-native-dom! I've been spending some time digging into WebGL UI rendering for WebVR, and when the time comes to consider it for RNDom this might be a good project to review. This is my fork, the original project has been set aside by the author, but I intend to continue developing it:
https://github.com/gfodor/react-surface
It uses PIXI.js to basically draw primitive surface
elements which are akin to RN View
s. Probably could provide a reasonable starting point if PIXI seems like a reasonable renderer to use for RNDom's WebGL target.
I did some experimenting with PIXI and while it's really nice it's also really heavy. I think when we do eventually go down this route it'll require a far more focused & lean renderer, and for all we know it may be a larger win to build something from the upcoming WebGPU spec instead of WebGL.