mikesol / purescript-deku

A PureScript web UI framework
https://deku-documentation.vercel.app/
Apache License 2.0
133 stars 12 forks source link

deku-native #128

Open srghma opened 1 month ago

srghma commented 1 month ago

Screenshot

@mikesol I saw You was interested in nativescript

BTW, just to give more ideas

There existed https://github.com/GeekyAnts/vue-native-core on top of react-native, but was deprecated https://github.com/GeekyAnts/vue-native-core/discussions/342

UPDATE: they just wrap React component

https://github.com/GeekyAnts/vue-native-core/blob/552f9171809c6fb86e4f3767a2947ff5f96c37bf/src/platforms/vue-native/scripts/compiler.js#L19

not cool, ignore)

mikesol commented 1 month ago

Yesss, absolutely, I'm itching to do this when I have time.

The way that deku is designed is that it can work with an arbitrary renderer as long as the renderer fulfils a contract called DOMInterpret. This is how I'd go about a NativeScript port, which I'm very keen to do.

Before doing this, though, my hope is to create a no-frills low-level binding for NativeScript, similar to what I did for the WebGPU API. That's more useful to the community, as any project can build on top of that (including deku).