Hacker News new | ask | show | jobs
by doughj3 3762 days ago
> Even better, I can now create both iOS apps and Android apps at the same time

Are you referring to native apps, or do you mean by making a Web app with React you don't need to make native apps?

3 comments

React Native [0]. Your view-specific code still has to be done per-platform, but your core logic can be shared, and all of it is written with Javascript using React as the framework. The JS creates and controls native elements, with the native parts mostly abstracted away.

[0] https://facebook.github.io/react-native/

Exactly this, made even simpler by the naming scheme that lets you have iOS and Android versions of the same component.
You can write much view code in a way that abstracts over the DOM/Native platform, too, using standard abstraction techniques.
I'm referring to native apps on iOS and Android as the code commonality is huge, with just a small number of platform specific components. The biggest surprise though was how much I could port out for a web version (and Electron based Windows and Mac applications)
His mention of the flex layout model implies React Native