r/node • u/mominriyadh • Aug 23 '19
π Announcing NodeGUI and React NodeGUI - Build native desktop apps with Javascript and CSS π
https://blog.atulr.com/nodegui-intro/5
u/GForce1975 Aug 23 '19
How difficult would it be to convert my existing electron app? Would it be a full rewrite? Or just swapping electron calls for something else?
9
u/noamalffasy Aug 23 '19
A full rewrite as this framework is a real native app and not a browser
5
u/yondercode Aug 24 '19
But other than the electron calls, in react-nodegui you can reuse everything other than the actual rendering component (Like <div> to <View>, etc) and some styles right?
That's far from a full rewrite IMO
1
u/noamalffasy Aug 24 '19
I wonder how much styling is required to make it look the same on each platform because the sample app is unable to achieve that goal (the font and the font size are a bit different)
1
Aug 24 '19 edited Aug 24 '19
two explanations for that:
the font is not specified in example css, so it sticks to the default system font
the apps are likely resizeable, and since the font size is static in the css, they just appear to have different font size
nvm mac font is obviously biggerjust tested it, and can confirm, it is resizable, uses native font and static font size so it just appears smaller on screenshots0
2
u/robertmsale Aug 24 '19
This is really promising! Once upon a time I was researching a similar framework called BrigJS but it looks like that project was abandoned. It was even on QT's website for the official list of QT bindings, yet hasn't been updated in over 2 years and is incompatible with the latest QT development packages. Can't wait to check it out!
0
19
u/[deleted] Aug 23 '19
So even with this "native" approach, we still have to ship a whole JS runtime (nodejs in this case) with the application distribution, right?