Re:Proton Native – React Native for the Desktop
by wishinghand on Wednesday February 14, 2018 @07:42PM
(#16380980)
Is this ready for production? Beta? Alpha?
I’m not super familiar with packaging desktop apps but I believe Windows programs need a .dll file or few. Is there something on the roadmap for setting up an MSI?
What about icons for system trays, alt-tabbing, desktop, and other locations?
Re:Proton Native – React Native for the Desktop
by kusti8 on Wednesday February 14, 2018 @07:49PM
(#16381022)
It's not totally ready for production because the GUI library that I'm using is not totally polished. My part I would say is Beta, and the GUI library is versioned as alpha. For most tasks it will work fine. For more complex stuff you will obviously want something more robust.
With Windows, the .dll is compiled on npm install, and that works perfectly. Currently I don't think libui supports icons.
I chose libui because it is the only GUI library for JS that I could find. It is nice and fits well with React, but it does have some holes. The author is going to continue development soon, so some of the problems should be fixed in the future.
A MSI can be generated using an installer such as NSIS.
Re:Proton Native – React Native for the Desktop
by wishinghand on Wednesday February 14, 2018 @10:19PM
(#16381660)
How does this work in general, once one finishes writing a React Native app? As a developer, how would I get data from a server, same as a HTTP/AJAX call?
Re:Proton Native – React Native for the Desktop
by kusti8 on Thursday February 15, 2018 @06:32AM
(#16383244)
I don't really understand what you mean. To get data from a server, you can just use normal nodejs to send a http request. Usually you'll have it so that it works when a callback is triggered, such as a button press.
I’m not super familiar with packaging desktop apps but I believe Windows programs need a .dll file or few. Is there something on the roadmap for setting up an MSI?
What about icons for system trays, alt-tabbing, desktop, and other locations?
With Windows, the .dll is compiled on npm install, and that works perfectly. Currently I don't think libui supports icons.
I chose libui because it is the only GUI library for JS that I could find. It is nice and fits well with React, but it does have some holes. The author is going to continue development soon, so some of the problems should be fixed in the future.
A MSI can be generated using an installer such as NSIS.