Live data from Hacker News

React Native for Windows and Mac

microsoft.github.io

11–20 of 505 posts

Re: React Native for Windows and Mac

#12
post #6

I'd love to abandon my C/C++ UI frameworks for React, but I need - consistent rendering/support across multiple platforms and versions - multiple windows - rendering to a window that isn't owned by the UI being rendered or created by the framework Can I do that all in React native? Edit: don't need to bring up electron.

Electron can't do multiple windows or consistent rendering?

Legit question, I just started using Electron, hadn't heard of the former and thought the latter was a selling point because all platforms wrapped Electron's Chrome.

Re: React Native for Windows and Mac

#15
post #6

I'd love to abandon my C/C++ UI frameworks for React, but I need - consistent rendering/support across multiple platforms and versions - multiple windows - rendering to a window that isn't owned by the UI being rendered or created by the framework Can I do that all in React native? Edit: don't need to bring up electron.

Electron can't do multiple windows or consistent rendering? Legit question, I just started using Electron, hadn't heard of the former and thought the latter was a selling point because all platforms wrapped Electron's Chrome.

[deleted]

Re: React Native for Windows and Mac

#17
React Native scares me with its dependency webs:

http://npm.anvaka.com/#/view/2d/react-native

From my experience, it's really great to work with and definitely saves a ton of work, but the depgraph above fills me with doubt for use in sensitive applications such as in finance or healthcare. For this reason, I've been trying out Flutter or even considering to go back to native apps. Perhaps there's some kind of middle ground where we can create a tight microkernel-like thing natively using secure enclaves and key managers, but expose an API to the "untrusted" parts of the program. This approach is not without its own downsides, such as dark patterns in a compromised UI. However, as one friend pointed out, a lot of those deps are indeed for build time only, which have different risk profiles.

The depgraph of reactjs is far simpler and easier for me to understand and therefore feel trust:

http://npm.anvaka.com/#/view/2d/react

Does anyone know if there has been reliable research towards the security of the entire RN dependency tree? Seeing a stray dep there that has 1 maintainer on npm/GitHub who has been inactive for over a year makes me nervous. Any one of those JavaScript projects could do something nefarious deep under the hood, and this to me seems to expose a huge surface area for attackers.

Here's a classic throwback to keep us on our toes :)

https://www.win.tue.nl/~aeb/linux/hh/thompson/trust.html

Re: React Native for Windows and Mac

#18
I think the killer feature here is natively targeting Windows AND macOS simultaneously.

The only cross-platform alternatives that I've seen in the ecosystem use either web or Gtk in the frontend, and both of these have a distinctly non-native feel to them.

Re: React Native for Windows and Mac

#19

Excuse my ignorance. What's new about this? I thought React Native was already a thing?

React Native at least only advertises that it only supports Android + iOS, whereas this adds "PCs, tablets, 2-in-1s, Xbox, Mixed reality devices, etc., as well as the MacOS desktop and laptop ecosystems"

Re: React Native for Windows and Mac

#20
post #6

I'd love to abandon my C/C++ UI frameworks for React, but I need - consistent rendering/support across multiple platforms and versions - multiple windows - rendering to a window that isn't owned by the UI being rendered or created by the framework Can I do that all in React native? Edit: don't need to bring up electron.

what the heck is that third one about?

maybe an OpenGL type of rendering?
Post reply on HN