Live data from Hacker News

React Native for Android

code.facebook.com

241–248 of 248 posts

Re: React Native for Android

#241
post #238
post #216

Earlier quoted context omitted.

That's why Common Lisp / CLOS has functionality like * CHANGE-CLASS (change the class of an object to a different class), * update-instance-for-different-class (updating the object after a class change, one can provide methods which will be lazily called when needed), * update-instance-for-redefined-class (updating the object after redefining a class, one can provide methods which will be lazily called when needed),…

Which can be really cool, but has its downsides: Hey cool, I can change these classes live! Let's solve this tricky problem by changing the class at runtime. Cool, it works, now on to the next problem. 2 years later... What's causing this super-weird bug? It's like the code isn't doing what it says at all. 1 week of debugging and head-banging later... Oooh, something got screwed up in that runtime class change code.…

Is that something you've experienced?

Re: React Native for Android

#242
post #235

Earlier quoted context omitted.

That, and because development is way easier.

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.

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

#243
post #103

Question for everybody doing some sort of cross platform mobile dev. How common is it to have NO experience with a platform's native libraries? In other words you didn't go from ObjC or Java to React Native/Cordova/Xamarin to try and re-use code but because you know JS or C# and weren't concerned about learning the native platform. For any that started out with no native platform knowledge did you start to dip into i…

I got into native development with no experience in the iOS/Android APIs, coming from a web dev background. I did know Java and C from working on side projects, and read up on Objective-C before, though. At my previous company, all the developers doing native work had no prior experience w/ mobile development (i.e. they primarily had backend C# experience) I dabbled w/ Cordova and friends before, and did some work to…

We are a startup that went the React Native route. We initially started with Ionic, but then switched to React Native. You can read about our experiences here: https://tmail21.com/blog/why-our-startup-chose-react-native-...

Re: React Native for Android

#244
post #219
post #206

"OS X - Only OS X is currently supported" Why is this becoming popular ?

There's unfortunately a lot of non-overlapping work so we decided to release what we have finished incrementally. Most of the team uses OS X for development so it was a natural first choice. We're planning on adding the missing Windows and Linux support soon!

Any idea when? I'm not sure what the full build stack is, so it's hard to have an idea on what has to be ported.

Re: React Native for Android

#245
post #241
post #238

Earlier quoted context omitted.

Which can be really cool, but has its downsides: Hey cool, I can change these classes live! Let's solve this tricky problem by changing the class at runtime. Cool, it works, now on to the next problem. 2 years later... What's causing this super-weird bug? It's like the code isn't doing what it says at all. 1 week of debugging and head-banging later... Oooh, something got screwed up in that runtime class change code.…

Is that something you've experienced?

Not directly, mostly because I haven't done that much work in any language where you can do that. But I have had that kind of experience when trying to figure out what Ruby code is actually being run somewhere. I may be heading that way with C#, with the occasional overuse of dynamic and reflection.

Re: React Native for Android

#246
post #219
post #206

"OS X - Only OS X is currently supported" Why is this becoming popular ?

There's unfortunately a lot of non-overlapping work so we decided to release what we have finished incrementally. Most of the team uses OS X for development so it was a natural first choice. We're planning on adding the missing Windows and Linux support soon!

Thank you for your reply, you should add this information somewhere because right now there is now way to know you're working on it.

Re: React Native for Android

#247
post #193

Earlier quoted context omitted.

It's because anyone who has done any complex web app development knows that you don't have one button changing color. You have 100+ UI components whose state may depend on one another, and as the DOM nodes composing those UI elements get state attached to them, it's EXTREMELY easy for them to both (1) get out of sync, and (2) thrash and re-render entire trees of the DOM unnecessarily. This is a real thing that happen…

Yes, I understand all of this. It can work for small websites. However, the technique cannot uphold for larger systems. For example, consider writing a word-processor using this style of programming. If the user is writing a 10-chapter book, and every character entered by the user requires a visit of all characters in the book, that is not very usable. So even from a practical viewpoint (not just theoretical) it is n…

> For example, consider writing a word-processor using this style of programming.

Quip uses React.

Re: React Native for Android

#248
post #204
post #185

Earlier quoted context omitted.

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.

Got any sources for that? I've not found a single example of a react android app that shows "live updating apps in production". I'm talking about things like loading code seamlessly in the background from a CDN. There are examples for iOS though
Post reply on HN