> So I can re-use code from my front end website on my native mobile apps for the new startup I'm launching.
Just to be clear, Ionic is _not_ native.
While Ionic's not native, even Ionic 1 is close enough for most apps. Ionic 2 is supposed to be 3-5 times faster. So for startups that need both iOS and Android support, but have small teams, Ionic's 100% iOS-Android code reuse remakes a lot of sense.
Have you tried React with React Native[0]?
Re:Angular 2 – Best Practises
by Secretmapper on Monday June 27, 2016 @08:22AM
(#11985683)
BTW to parent, one big advantage of react-native over ionic is that it's not a wrapped web app, but a javascript/react app that compiles to an actual native app.
The performance difference and development experience (no silly css hacks) is very noticeable.
Not to nitpick, but I don't believe react native "compiles" to a native app. The evaluation of the JS in JavaScript Core is passed of to native code to layout native views. The interactions are then posted back into jscore. So while closer to native compiled code performance, it's still a bit different.
Re:Angular 2 – Best Practises
by Secretmapper on Monday June 27, 2016 @12:34PM
(#11987303)
Fair enough, I'm afraid I didn't explain it properly
Re:Angular 2 – Best Practises
by madeofpalk on Monday June 27, 2016 @08:23AM
(#11985685)
In my experience code-share between React and React Native is extremely difficult as your UI code is so significantly different with native components and what not.
At least with Angular/Ionic you can directly share UI code between the two as its all HTML and CSS.
Still, I really enjoy working with React and React Native because I it's one API and mental model to learn.
You might want to check out https://github.com/necolas/react-native-web - that has implementations for a lot of the React Native primitives on the web, to make code-sharing easier.
Re:Angular 2 – Best Practises
by Secretmapper on Monday June 27, 2016 @12:35PM
(#11987314)
Have you tried it recently? I don't think I've had this problem with recent versions.
So I can re-use code from my front end website on my native mobile apps for the new startup I'm launching. Much less code = quicker time to MVP, and lower cost of development.
[0] http://blog.ionic.io/angular-2-ionic/