clayrisser / react-gtk

react Native bridge for gtk desktop applications
https://clayrisser.com
MIT License
303 stars 19 forks source link

Yoga Implementation #3

Open clayrisser opened 6 years ago

clayrisser commented 6 years ago

Discussion on approaches to implementing yoga flexbox.

https://facebook.github.io/yoga/

clayrisser commented 6 years ago

Should we implement this in C or in JavaScript? At first I was thinking in C, but that will require me to implement this in node-gtk3, and honestly I'd have to go through some yoga middleware every time I want to access gtk. I don't know if that is a good approach. Maybe at least for the first version we should implement it with JavaScript in react-gtk. Under the hood it's all C, so it should be pretty fast anyways.

clayrisser commented 6 years ago

I've decided that at least for now, this will be implemented with JavaScript. I don't want to force jamrizzi/node-gtk3 to use yoga.