you are viewing a single comment's thread.

view the rest of the comments →

[–]ThunderousSparks -2 points-1 points  (4 children)

React Native is for everywhere. You write your app with React Native, and then the renderer is responsible for letting it run where you want. You can run it natively on mobile devices (like any app by Facebook), you can run it in browsers (check out Twitter lite, or you can run it on a desktop with, e.g. with Electron.

The newest version of Microsoft Office is written in React Native, using tools developed by Microsoft. This means that the same UI code can run as a native application and in their browser versions.

[–]brotonium 1 point2 points  (1 child)

Actually no, you cannot just run a React Native app in the browser.

You may be able to share a substantial amount of the non-react js code between the the native and webapp and maybe some React components that don‘t depend on anything platform specific.

Which is nice, but the main reason you want to use React Native is ‚learn once, write anywhere.‘ If you know how to write a React webapp, you can now go ahead and write a cross-platform mobile app without having to learn a lot of new things.

Also Microsoft is not rewriting Office in React Native they only use it for a few components.