Hacker News new | ask | show | jobs
by FlyingSnake 3501 days ago
> you can build apps that are virtually indistinguishable from Swift/Java apps

That is a very tall claim to make without any citations. All the cross-platform toolkits lag behind native swift/java apps by at least some margin, and the claim that JS indistinguishable from swift/Java is highly questionable.

1 comments

How would you distinguish between the two if both are running above 60fps, which RN effortlessly can?
> which RN effortlessly can*

I respect RN and the engineering behind it, however how can it beat the raw, on-metal performance of Swift/Java? I'm not talking about CRUD/TODO list apps like https://li.st, but performance critical apps like Spotify etc. Facebooks own apps are written in native code, IIRC.

I would love to be proven wrong here, and it would be great if you can provide some sources.

React Native is primarily aimed at writing cross-platform UI code. When it comes to performance critical code, or integrating heavily with native UIs (eg the media streaming abilities of Spotify) it's perfectly fine to drop down to native code. RN provides an easy way to bridge between the JS and these native components.
> Facebooks own apps are written in native code, IIRC.

They are written in React Native. See: https://facebook.github.io/react-native/showcase.html