Hacker News new | ask | show | jobs
by FlyingSnake 3509 days ago
> 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.

2 comments

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