Live data from Hacker News

React Native is now open source

github.com

261–270 of 298 posts

Re: React Native is now open source

#261

I am seeing something like this in Native code var { AppRegistry, Image, ListView, StyleSheet, Text, View, } = React; is this ES6 feature?

Yes, that's an ES2015 (formerly known as ES6) feature called destructuring. It's just one of the great features of ES2015. You can use ES6 today by transpiling to ES5 with https://babeljs.io

Re: React Native is now open source

#262
post #7

The first thing I do now on each Facebook open-source reveal, is to check the PATENTS file for the toxic second paragraph, to see if they've changed it. Sadly, no. I can't imagine being able to use this at any decent-sized company with lawyers. :-( https://github.com/facebook/react-native/blob/master/PATENTS See for example the discussions at https://news.ycombinator.com/item?id=9111849 (eg. https://news.ycombinator.…

> The first thing I do now on each Facebook open-source reveal, is to check the PATENTS file for the toxic second paragraph, to see if they've changed it. Sadly, no

If I'm reading this right, any fork of this code is not covered by the patent-protection can be sued into oblivion, by Facebook themselves if they feel threatened. Wow.

Ability to fork is crucial for real life open-source projects, so having a clause like that pretty much nulls out any open-source benefit which may have been there in the first place.

Re: React Native is now open source

#263
post #252

Earlier quoted context omitted.

The native uibutton is made of uiviews too

Absolutely. My primary concern is with the controls feeling native. Reimplementing controls with UIViews doesn't seem much better than reimplementing them with HTML/CSS (save for performance). There's still surface area to break the illusion. Some food for thought: what if you kept HTML and CSS but instead of using a WebView to render it, you rendered the DOM manually using UIViews? You could even make overflow: scro…

I mean... if you're talking about the entire HTML and CSS spec, then it'd be way, way, way ridiculously slower than just using a WebView.

Re: React Native is now open source

#264

React Native is the most promising cross-platform UI toolkit I've thus far encountered. Congratulations to the team that built / launched it. The reason I'm excited for it: Java promised write-once-run-anywhere, which means you are always serving the least common denominator. React Native promises learn-once-write-anywhere, which means a single team of engineers can realistically build high-quality apps using the tar…

React Native is the most promising cross-platform UI toolkit I've thus far encountered. I guess a lot depends on what is meant by encountered but Xamarin would probably be a much more full featured cross platform UI toolkit than anything else out currently.

Time for the now, almost weekly, shoutout for http://reactiveui.net which is a functional reactive programming framework that uses the Reactive Extensions for .NET to create elegant, testable User Interfaces that run on any mobile or desktop platform.

Supports Xamarin.iOS, Xamarin.Android, Xamarin.Mac, WPF, Windows Forms, Windows Phone 8 and Windows Store apps. Check out "Writing Mobile Apps the Github Way by Paul Betts" @ https://www.youtube.com/watch?v=voa44OHBKME

It is the framework that powers GitHub for Windows and various other undisclosed projects ;-)

Re: React Native is now open source

#265

Earlier quoted context omitted.

google "define:hereunder" -> "as provided for under the terms of this document."

With sub-qualification: >further on in a document. Even your primary definition contains the location clause, 'under the terms'.

> with a sub-qualification

Odd, that didn't show up in my view o_O Maybe google is geo-targetting dictionary definitions...

Also, 'under the terms of this document' does not literally mean 'physically located beneath this sheet of paper' :P

Re: React Native is now open source

#266
post #32

Earlier quoted context omitted.

I'vs been obsessively checking too, but for React Relay :(

It's the server-side GraphQL for me :(

Someone wrote a GraphQL query parser. https://github.com/madjam002/graphqlite There aren't any GraphQL servers yet though. Pretty hard to write too in a generic useful-for-all manner.

Re: React Native is now open source

#267
post #32

Hallelujah! I've been checking my Twitter obsessively today and yesterday for this.

I'vs been obsessively checking too, but for React Relay :(

Want to use out Relay ahead of the official release? See React Transmit: https://github.com/RickWong/react-transmit

It's basically Relay but using Promises instead of GraphQL to write queries. Transmit is coincidentally also a very efficient way to create isomorphic apps that can render on the server.

Re: React Native is now open source

#268

Earlier quoted context omitted.

I think many people dismiss this recommendation right away nowadays, but here it goes: Adobe Air comes pretty close to "WORA". For 2D games it goes almost without saying, but throw in the excellent Starling + Feathers framework and it is great for Apps too. A drawback is of course that you do not have native UI, but if you can get passed that it works really really well. I evaluate cross platform technologies quite r…

I can see the appeal of Adobe Air and its ecosystem. I guess on mobile the only problem is binding to system services & ad providers. IIRC most of that is already covered by 3rd parties, but it's a bit involved to do it yourself. Funny you mention Flex, still gives me the shivers, still used by a lot of enterprises around here. Pretty much on par with applets in terms of badness.

Yes.. as far as I can tell most of this bindings are covered by native extension of 3rd parties. Not always free (but not that expensive), so u have to buy an extension for a quality FacebookSDK integration for example. Still far cheaper than for example Xamarin.

But considering that you do not necessarily have any costs in developing Air (you get the compiler, and also good editors, for free) it is not that bad at all.

I also do not write native extensions myself, but at least you know there is the option in case u need to access some native library. But yes, in that case it is not really "write it once" anymore.

Re: React Native is now open source

#269
post #213
post #200

Earlier quoted context omitted.

My last update (from two weeks ago or so) was that you were going to bundle a JS runtime for Android as there's too much variation in earlier versions. Has that changed?

Ah- I stand corrected! I spoke with a few Android-focused folks and they set me straight. On Android, there is no JS execution environment available. We want to avoid the memory and cpu overhead of web views. So we are basically forced to ship Android with a copy of either JSC or V8.

Cool, thanks for the update. I'm curious to see what the memory footprint of the JS engine is going to be.

Re: React Native is now open source

#270

I'm interested in this primarily because I don't find it appealing to invest in (basically non-transferable) iOS platform skills. I want to build native mobile UIs for my projects, but not with a dead-end language and tools.

Precisely, every time I go to learn Objective-C/Swift and iOS dev, I feel like I am totally wasting my time.
Post reply on HN