Live data from Hacker News

React Native for Android

code.facebook.com

201–210 of 248 posts

Re: React Native for Android

#201

I have a fair amount of experience developing native Android apps in Java, and have an app for work that I'm developing/maintaining right now. I've also used React in a couple of medium-sized web apps. I'm extremely excited about the possibility of developing future functionality for our Android app using React Native. It's not about the language (I find using dynamically typed languages for large systems frustrating…

>I find using dynamically typed languages for large systems frustrating, despite how expressive they can be

Maybe you can find a middle ground in TypeScript ? I think it's really best of both worlds solution when it comes to JS.

I think they are working on JSX integration in the latest version.

Re: React Native for Android

#202
post #121

Google has been working with the alternative already: https://flutter.github.io/ . Probably usable in some months.

One advantage of React Native is that facebook uses it and hence they will keep developing it. Unless Google apps start using Flutter, it may not gain traction/resources.

Re: React Native for Android

#203
Great to see that some Cordova plugins are available for react-native (Background geo location). I think it is just a matter of weeks before this becomes the main stream for web developers who would like to write native apps. Don't know how Ionic can even compete with this, considering Angular2, which can render anything and not just the DOM. By the time Angular2 is stable and out of dev-preview react-native would have perfected native-rendering. Its going to be Angular2 + React-native for native apps in future.

Re: React Native for Android

#204
post #185

Earlier quoted context omitted.

> Wouldn't you still have to at least redeploy the app to the phone if you change the JS? No, that's the beauty of it. All you need to do is shake your phone and tap the "Reload JS" option. Those JS files are served by some sort of a server that starts up on your dev machine when you first deploy the app. See https://facebook.github.io/react-native/docs/tutorial.html#d... (search for "reload js").

I assume this is only in dev mode, as opposed to release mode?

Actually no, POCs have been made which allow you to deploy setups which allow for live updating apps in production. Apple even allows RCE as long as it's executed in the JS engine.

Re: React Native for Android

#205

Earlier quoted context omitted.

I used to think same way, but 99% of your user won’t feel that way. My hacker news app is a hybrid app. Available on iOS/Android/Windows/Mac and web, and I harldy see any one compalining about not being native. There are some legit issues and peole think only way to fix is go native. Only reason I have not fixed those issues because I don’t have time, or I don’t use that functinality.

I use the app on Android and it's the best HN app on Android but at times it is obvious that it is not native and it has some issues as you said. What I have encountered are 1. I get an error message "Unable to load xxxx" at times (forgot the exact message) and the app closes. 2. If I switch between article/comments it always reloads 3. At times clicking on the comments icon doesn't work when you are in article mode.…

Also the slide animations when I push the back button feels sluggish in my phone

Re: React Native for Android

#207

Earlier quoted context omitted.

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.

Has Apple ever chosen a non-native app for its annual design awards?

was there ever non-native app worth a reward?

Re: React Native for Android

#208
post #9

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…

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

#210
post #108

Earlier quoted context omitted.

I don't believe it. As someone with lots of native UI experience, that has to occasionally support web projects, the web is just plain clunky and playing catch up with the RAD tooling we enjoy since the mid-90 on native platforms.

I was mostly referring to development paradigms and methodology in my original post, but in terms of tooling, I personally haven't see any tooling on the native side even approach the increased productivity provided by the instantaneous feedback loops that countless hot-reload implementations can offer for the web. https://github.com/gaearon/babel-plugin-react-transform/ http://gaearon.github.io/react-hot-loader/ htt…

You mean like development with Smalltalk and commercial Common Lisp environments?

Or designing GUIs WYSIWYG with Delphi, XAML with Blend, the UNIX 4GL in the 90?

Post reply on HN