Live data from Hacker News

React Native is now open source

github.com

201–210 of 298 posts

Re: React Native is now open source

#201

This does not make sense to me: var { ScrollView, TouchableHighlight, Text } = React; It gives an error in Console.

This is destructuring (a new feature in ES6, the upcoming version of JavaScript). There's a great in-depth read on how it works here: http://www.2ality.com/2015/01/es6-destructuring.html

Re: React Native is now open source

#202

Earlier quoted context omitted.

> they focused on running said HTML/Javascript within a performance limited WebView and not the other way around. Could you explain that? I'm not familiar with phone development and I'm having difficulty figuring out what "the other way around" is.

Phone Gap tried to mimic native Android and iOS UI using HTML, CSS, and JS. React Native uses JS to control 100% native UI.

For some definitions of "100% native UI."

I'm a little concerned because, for example, a button is not implemented as a native UIButton, and a ListView doesn't use UITableView. Instead they are composed of native UIViews with a lot of JavaScript glue.

That being said, Facebook has more experience writing iOS apps than me, so it may be possible that those things don't really matter (and doesn't preclude 1:1 components from being added down the road).

Re: React Native is now open source

#203

Earlier quoted context omitted.

Don't forget http://robovm.com/ (basically java for ios).

Thanks for remembering and mentioning us. We don't have as huge a marketing budget as the other folks, so I'm going to shamelessly piggy back on your comment here. We also do Scala, Kotlin, Clojure etc. and we are OSS as well (we started out as OSS). You can build unlimited apps without paying us a dime. You can also compile the entire compiler plus Eclipse/Idea/Maven/Gradle integration yourself so you aren't locked…

So if I have a common business logic library in Scala, could I build that into both my app and my server side? Write once, run in 2 environments?

Re: React Native is now open source

#205
post #73

Earlier quoted context omitted.

> do you really think you can call yourself an iOS developer when... I don't really want to call myself an iOS developer. I just want to port a simple web app to iOS, and my options are learning just enough iOS development to do it myself, or hiring a real iOS developer. So I'm curious if this framework would tip the scale in favor of the first option.

Sounds like you've answered this yourself. You don't even have to dive into React (which has its own unique way that I'd call barely JS anymore). Have you tried Cordova / Phonegap?

"You don't even have to dive into React (which has its own unique way that I'd call barely JS anymore)."

Eh, I assume you're referring to the JSX syntax. I happily don't use it at all. It's all just JavaScript functions and objects.

Re: React Native is now open source

#206

Remember this day, because React Native is going to be a game changer (patent clause stuff aside). Others like Phone Gap tried to make it so you could build native apps using HTML/Javascript but they failed because they focused on running said HTML/Javascript within a performance limited WebView and not the other way around. This weekend I am going to try and get a working application built using React Native. Facebo…

I think there's a lot of proof that it does work, given there's 300,000 Ionic apps, tons in production.

I downvoted you not because I don't agree that Native will be compelling but because I hate to see all this hate that's come out against hybrid apps in general that's even been propagated by React Native devs.

Webviews will get there. WKWebView is already a huge step forward. I think Native is great, but it's not a clear winner in many cases. I even like "learn once apply everywhere" (though it doesn't really go against the web in any way), but I would say the mountain of hybrid apps out there actually disprove that it "just doesn't work".

Re: React Native is now open source

#209
post #132
post #67

Earlier quoted context omitted.

React Native is only the view layer. There is a ton more to an app than just the view layer.

Not just the view. React Native also gives you access to HTTP and full JavaScript logic, so the model, view and controllers can be written using React Native.

I just discovered that. They're using building polyfills to simulate the browser behavior, too. Very cool.
Post reply on HN