shirakaba / react-nativescript

React renderer for NativeScript
https://react-nativescript.netlify.com
MIT License
284 stars 14 forks source link

Idea: use with another VDOM library #40

Closed brodycj closed 5 years ago

brodycj commented 5 years ago

such as Preact (preact-nativescript?), Inferno, or even the rawact Babel plugin?

shirakaba commented 5 years ago

React NativeScript is coupled to React. I can't just pick up this implementation and migrate it to another renderer. It would be a full library rewrite.

Vue implemented a DOM for NativeScript, and Svelte Native built upon it. Those two implementations are far more suitable for migrating to another renderer.

NativeScript Preact and Preact to NativeScript both exist, and died out either due to difficulty in implementation or due to lack of interest/contribution.

rawact is still in proof-of-concept stage and is incomplete.

If Inferno is completely API-compatible with React, right down to the TypeScript typings, then there might be a chance of porting it. However, I have no experience with it, and am still trying to get this project off the ground, so I have no interest in abandoning this project to start afresh with an even more niche one.