News for hackers. Stuff that matters.
Re:React Native for Android by jbob2000 on Monday September 14, 2015 @01:53PM (#10216377)
Yes! I've been working with React-Native on a side project for a few weeks now. WHAT A GODSEND! Before this, I was using Titanium, which is heavy, slow, and difficult to integrate with. React-Native felt like home.

On a related note; Why is it up to Facebook to develop something like this? Why aren't Apple and Google making it this easy to develop apps? ObjC is a nightmare, 90% of apps out there don't need that level of control.

Re:React Native for Android by jbigelow76 on Monday September 14, 2015 @01:58PM (#10216409)
Why aren't Apple and Google making it this easy to develop apps?

Apple has no incentive to make it easier for app developers to port their code to other platforms.

Re:React Native for Android by rail2rail on Monday September 14, 2015 @02:49PM (#10216722)
Has Apple ever chosen a non-native app for its annual design awards?
Re:React Native for Android by whatever_dude on Tuesday September 15, 2015 @05:12PM (#10223245)
You mean not including the vast number of Unity based games that are there?
Re:React Native for Android by rimantas on Tuesday September 15, 2015 @04:02AM (#10219487)
was there ever non-native app worth a reward?
Re:React Native for Android by onedev on Monday September 14, 2015 @02:19PM (#10216522)
But it does have incentive for app developers on other platforms to port code to their own platform.
Re:React Native for Android by jbigelow76 on Monday September 14, 2015 @02:27PM (#10216582)
Apple probably doesn't concern itself with any developers that don't want to be on their platform. In fact they probably find the notion so inconceivable that they wouldn't see any value in that developer's app.

Are there any "unicorn" apps that are Android only and intend to stay that way?

Re:React Native for Android by breckenedge on Monday September 14, 2015 @04:44PM (#10217351)
Torque Pro[1] -- it's the reason I bought my first Android phone. On the flip side, there's ForeFlight[2].

[1] https://play.google.com/store/apps/details?id=org.prowl.torq... [2] https://itunes.apple.com/us/app/foreflight-mobile/id33325263...

Re:React Native for Android by onedev on Monday September 14, 2015 @04:37PM (#10217322)
Absolutely and I don't think any other company could think in this way and succeed as wildly as Apple have.
Re:React Native for Android by aianus on Monday September 14, 2015 @02:39PM (#10216656)
> Are there any "unicorn" apps that are Android only and intend to stay that way?

Chrome? Also Gmail, Google Now, and Facebook Messenger on iOS are garbage compared to Android.

Re:React Native for Android by myko on Monday September 14, 2015 @03:06PM (#10216826)
Chrome is available on iTunes: https://itunes.apple.com/us/artist/chrome/id15979771

It's just stuck being the Chrome around UIWebView instead of fully featured Chrome, which is unfortunate.

Re:React Native for Android by jbigelow76 on Monday September 14, 2015 @03:01PM (#10216795)
Chrome?

I could be wrong but I am pretty sure I am typing this response in Chrome on a Windows box right now, so maybe not the best example of an Android only app.

Re:React Native for Android by aianus on Monday September 14, 2015 @03:02PM (#10216803)
I figured we were talking in the context of Android vs. iOS.
Re:React Native for Android by jbigelow76 on Monday September 14, 2015 @03:30PM (#10216955)
Fair enough. But even Chrome missing from iOS is mostly just an annoyance to tech types. Nobody is trading in their iPhone for a Nexus just to get Chrome, it's not the same as when Instagram was iOS only.
Re:React Native for Android by squints on Monday September 14, 2015 @04:53PM (#10217394)
Chrome is available on the App store, friend.
Re:React Native for Android by servercobra on Monday September 14, 2015 @02:26PM (#10216570)
They incentivize people porting to iOS by being a great platform with tons of customers, many of which are willing to pay. That's why so many apps launch on iOS first (much to my dismay as a diehard Android user).

Why Google hasn't done this, I don't know. Seems like it is in their best interest and something they're already doing internally. They use the shared web/Android/iOS code concept for Inbox (but not HTML/JS)[1] and probably other projects.

[1] http://arstechnica.com/information-technology/2014/11/how-go...

Re:React Native for Android by rhodysurf on Monday September 14, 2015 @03:01PM (#10216790)
Dont they use this j2objc? https://github.com/google/j2objc
Re:React Native for Android by jbob2000 on Monday September 14, 2015 @02:18PM (#10216517)
Sure, but that works in reverse. People could easily port their code TO iOS.
Re:React Native for Android by aianus on Monday September 14, 2015 @02:21PM (#10216540)
Unfortunately everyone writes iOS first nowadays because rich people overwhelmingly own iOS devices.
Re:React Native for Android by yoz-y on Tuesday September 15, 2015 @05:51AM (#10219742)
You could probably replace "rich" by "people willing to pay money for apps". Although even on iOS this is less and less true.
Re:React Native for Android by andreamazz on Tuesday September 15, 2015 @11:22AM (#10221143)
That, and because development is way easier.
Re:React Native for Android by aianus on Tuesday September 15, 2015 @04:19PM (#10222898)
I'm curious why you say that.

You have to learn a whole new Apple-only programming language to do iOS (Swift or Objective-C) in addition to the iOS framework/libraries. Not to mention buying a Mac and paying Apple $100 for a developer account.

Android, on the other hand, was pretty straightforward to get started with for me as someone with Java experience.

Re:React Native for Android by andreamazz on Wednesday September 16, 2015 @02:17AM (#10224957)
Getting started is one thing, completing a product is another. It's not an uncommon metric to apply a 1.5x or 2x multiplier to the development time of an iOS app to obtain the time to develop the Android one. I would also argue that from the same starting point (no java experience and no Swift experience) the learning curve is way smoother on iOS, with more fine tuned APIs and better tools (interface builder can be picked up easily by a designer with no coding background).
Re:React Native for Android by s73v3r on Monday September 14, 2015 @02:24PM (#10216557)
Perhaps, but most studies show that they start on iOS to begin with.
Re:React Native for Android by low_battery on Monday September 14, 2015 @02:02PM (#10216437)
Re:React Native for Android by myko on Monday September 14, 2015 @03:10PM (#10216853)
This looks like more of a side project than something Google is going to put its weight behind. I am pretty excited for Fletch though - I hope it turns into something like React Native, which would be much improved using Dart and Dart tools instead of JavaScript IMO.

Right now Fletch looks pretty awkward/painful to use though. Writing views completely natively (ObjC/Swift/Java) and then calling into a DartVM for business logic doesn't sound like a fun way to develop to me. I could be wrong, I haven't tried to use Fletch - just read some examples, but right now I don't see the benefit.

Sky is basically Cordova as far as I can tell. It dumps native looking views into a webview and calls it a day. The demo app on Google Play (https://play.google.com/store/apps/details?id=org.domokit.sk...) does not make me terribly excited for it :(

Re:React Native for Android by low_battery on Monday September 14, 2015 @03:48PM (#10217073)
Sky is in early stages, but I think it has good potential and in active development. I think they made the app on Google play quite some time ago during dart summit as a demo, so maybe examples in the repository is a better place to look.

Also, looks like they will name it as Flutter: https://flutter.github.io/getting-started/

Re:React Native for Android by TheAceOfHearts on Tuesday September 15, 2015 @12:21AM (#10218929)
I'd be really curious to hear what makes Dart tools awesome. I haven't played with Dart, but JS has some of the best tooling I've used. Have you tried webpack and hotloading? Have you tried npm (with webpack to generate client-side bundles) as your dependency manager?
Re:React Native for Android by skeeterbug on Monday September 14, 2015 @03:15PM (#10216873)
Is sky engine a Google project?
Re:React Native for Android by low_battery on Monday September 14, 2015 @03:44PM (#10217049)
It is an open source project, but check the contributors, you will see Adam Barth, Ian Hickson, Eric Seidel and other Chrome engineers.
Re:React Native for Android by rhodysurf on Monday September 14, 2015 @02:55PM (#10216754)
It really isnt hard to write iOS or Android apps. I think you just like Javascript.
Re:React Native for Android by squints on Monday September 14, 2015 @05:09PM (#10217476)
I don't think the argument is whether or not iOS or Android apps are more difficult to write. But coming from the perspective of an early stage startup, React Native is an absolute game changer. Our same two engineers can build our iOS, Android, and web app. Code can be reused. Cuts dev costs significantly. Amazing.
Re:React Native for Android by Zigurd on Monday September 14, 2015 @04:03PM (#10217149)
The developers of those platforms created distinctive OSs with distinctive features. They would certainly dispute that "90% of apps out there don't need that level of control." Their point of view is that they are innovating in the OS, and apps that take advantage of features unique to a platform will have an advantage over those that don't. On Android, there is no cross-platform equivalent to Android IPC and RPC mechanisms. No Android Wear or Android Automotive. No Android TV UI. No cross-platform printing. Etc.

If you don't need to push the features envelope of the mobile platforms you are targeting, and if you are OK with having L&F that isn't native, and if you are OK with the pace at which your cross-platform tools chase the native platforms, then cross-platform tools like React Native can be fine for you.

Re:React Native for Android by rimantas on Tuesday September 15, 2015 @04:04AM (#10219492)
Objective-C is fine, and Swift even more so. If you don't know the platform sure, it is difficult, but that applies to any platform. When you learn native, all those web-tech monstrosities have zero appeal.
Re:React Native for Android by andreamazz on Tuesday September 15, 2015 @11:24AM (#10221155)
iOS development will always be native for me, the tools are not perfect, but they feel right, I can get stuff done in no time. Android on the other hand... I can't express how much I loathe the tools and language. So much that I stopped caring. React native might be an alternative.
Re:React Native for Android by oblio on Monday September 14, 2015 @01:57PM (#10216400)
Lock-in.
Re:React Native for Android by s73v3r on Monday September 14, 2015 @02:23PM (#10216550)
It's already damn easy to develop apps. Objective-C is just fine.

The only reason you think it's not easy is because you're using Titanium, and not embracing the different platforms' native toolkits.