Re:Introducing React Native [video]
by squeaky-clean on Thursday January 29, 2015 @03:01PM
(#8968499)
Same situation here, using Ionic, but this seems extremely cool. I'll definitely build something with ReactNative as soon as I can. We're only making a news app, but Ionic feels completely native once we optimized it correctly and use the latest beta features.
As for Android being slow does that include 4.4 devices, or just older version of Android? If it's older devices, you should try the new Ionic beta with Crosswalk integration (you'll need to install/enable Crosswalk, but it's very easy to do). Sadly, it'll add about 25mb to your .apk, but on phones earlier than 4.4 the performance boost is at least 10x if not more.
On your suggestion I tried it on my phone (4.1.2). The rendering improved, but speed is still an issue. Scrolling with big images is jerky.
However, I have not yet optimized images or CSS. I'll probably spend next week looking into optimizations for ionic.
Take a look at this blog post on improving scroll performance.
https://nolanlawson.s3.amazonaws.com/www/ionic_list_perf/ind...
The biggest trick is to use CSS and pseudo elements instead of actual DOM elements and bindonce wherever possible. Performant scrolling on older Android will always be tricky, even on native.
Re:Introducing React Native [video]
by mattdeboard on Thursday January 29, 2015 @08:38AM
(#8965991)
Dude you should try Swift. Much easier.
I currently have an MVP in ionic framework and would love to port this over to react. Though I should say that Ionic is amazing in its own right.
Also, I tend to agree with some of the comments in this thread -- regular Joe user can't really tell the difference. Ionic on an iPhone looks damn-near close to native. Android leaves a little to be desired.
Nice work React team