Hacker Newsnew | past | comments | ask | show | jobs | submit | acoates's commentslogin

react-native-macos is available today. The documentation is linked on the sidebar: https://microsoft.github.io/react-native-windows/docs/next/r...


Consistent cross platform: This is actually the one thats probably most difficult with react-native. Since unlike electron or Flutter, React-Native uses native UI for each platform. This means you can achieve full parity with native apps in terms of the UI. But all the platforms have different capabilities so since react-native can take full advantage of all the platforms, and isn't lowest common denominator, there are differences between the rendering / support across multiple platforms.

Can the native UI framework do multiple windows? - Then React-Native can do multiple windows.

Rendering to a windows that isn't owned by the framework is what React-Native refers to as Brownfield apps. This is absolutely supported. For instance, Microsoft Office is using React-Native for some parts of their UI in Android, iOS, Windows and macOS. And the Office window is not created or owned by react-native.


For that matter: Sciter supports use of native platform (or custom) native windows or widgets. For different reasons an combinations. I saw cases when even Qt widgets were used as DOM elements in Sciter controlled main window. So you can get best of two worlds - flexibility of HTML/CSS (rendering, layout managers) and native UI behavior and look.


We have done some internal tests of Hermes on a RN experience within Microsoft Office on Android.

Currently we use V8 with bytecode caching on Android, since it provided better startup performance than the JSC engine that normally ships within RN. So the baseline is likely already faster than stock RN.

V8 runtime Memory Impact: 30MB Hermes runtime memory impact: 21.5MB

V8 time to interaction: 1.4s Hermes time to interaction: 1.1s

We have done similar experiments on a full react-native-windows application, replacing the Chakra JS engine (also already with bytecode so faster than stock RN) with Hermes and had app boot time on a low end device go from 3.8s to 3.1s.


It's a pity the Proxy is not supported mobx is really much nicer approach to state management and usually, apps using mobx are much faster - simply because implementing shouldComponentUpdate properly is hard


You could still use MobX 4 though. It's equally well maintained.


Very nice numbers, although worth mentioning hermes only appears to support es5, so there's way less stuff to load.


Hermes compiles JS ahead of time to bytecode. The VM takes bytecode in as input, not source code. The ES5 vs. ES6 distinction doesn't matter as much as in other engines where the runtime takes source code as input, and as a result has to pay the more expensive ES6 parsing cost at runtime.



Since it's optimized for reducing memory consumption, you'd expect it to make boot time worse?


Impressive numbers. Did you try to use startup snapshot in V8 to improve TTI? https://v8.dev/blog/custom-startup-snapshots


From your numbers:

1. runtime memory reduction: ~25%

2. Boot time reduction: 20%

3. Time to interaction reduction: 20%

For apps with significant boot times, and runtime memory consumption, this is valuable.


For apps with significant boot times, and runtime memory consumption, this is valuable.

This assumes that the reductions are purely proportional to the total and not (at least partially) fixed.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: