r/node • • Aug 23 '19

🐕 Announcing NodeGUI and React NodeGUI - Build native desktop apps with Javascript and CSS 🎉

https://blog.atulr.com/nodegui-intro/
225 Upvotes

19 comments sorted by

View all comments

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

u/[deleted] 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 bigger just tested it, and can confirm, it is resizable, uses native font and static font size so it just appears smaller on screenshots

0

u/noamalffasy Aug 24 '19

Huh so it does seem like it could replace electron pretty easily