Hacker News new | ask | show | jobs
by bpavuk 239 days ago
yes. there is an aspect you are missing.

no one in their right mind wants to bundle Chromium with every app install, and every Discord user hates mobile Discord app, which is, guess what? uses Chromium!

4 comments

Your profile is full of incorrect assertions about software. What do you do for a living
There’s no Chromium in RN, that’s the whole idea behind Native part. It ships optimized JS runtime called Hermes.

And Discord mobile app on iOS doesn’t even use RN, it’s a native application.

No, it’s React Native.
Huh, you are right. I was thinking about Android. This one was fully native until recently.
For JS driving the business logic you do not need a browser to run it. On iOS there is JavaScriptCore and there are other Javascript runtimes out there that are quite small.

That said, it is true that Javascript may not be the right choice for every app and some developers may be used to better language features and performance than that.

React.Native doesn't use Chromium.
Just curious - how does React.Native implement native UI if it doesn't use chromium
It’s more complex now since they shipped the new renderer, but essentially serializes the react UI tree to JSON and passes it to native which parses and renders native components
By mapping some “low-level” components to platform primitives: https://reactnative.dev/docs/intro-react-native-components
React Native asks the native layer to render the UI natively.