Live data from Hacker News

React Native and Yoga Both Given MIT Licence by Facebook

github.com

121–124 of 124 posts

Re: React Native and Yoga Both Given MIT Licence by Facebook

#121
post #62

Earlier quoted context omitted.

Was just reading about yoga. Since you’re familiar with it, do you know if there are plans to support css grid?

I don't think there are any plans to but facebook has so many engineering resources that they may just add it one day. For now it's just Flexbox and I think that covers most developers' needs.

I'm not on the Yoga team but work with them quite closely. There are no active plans for adding CSS Grid support mostly because the spec is kind of awkward with the ASCII-art style definitions that are very reliant on CSS as the source language. Personally, I've been warming up to the idea of using CSS Grid for UIs more and more lately after reading this post on Mozilla Hacks[0], but we haven't had many requests for adding it otherwise.

[0] https://hacks.mozilla.org/2018/02/css-grid-for-ui-layouts/

Re: React Native and Yoga Both Given MIT Licence by Facebook

#122
post #119

Earlier quoted context omitted.

Do they plan on unifying them into one framework, or are the platforms different enough that they've given up on having one framework to do everything?

Litho and ComponentKit have similar APIs and we try to bring them closer together, but I'm not sure what unifying them would actually look like. You would still end up with two libraries that target very different languages. React Native is there to stay if sharing logic is more important to you than raw speed.

Ah okay, so they share the basic programming ideology but each is a bit more tailored to their target platform. Is that right? The advantage then being that it's easier to write versions for Litho and ComponenentKit than it is to write Java/Kotlin and Objective-C/Swift versions.

Re: React Native and Yoga Both Given MIT Licence by Facebook

#123
post #120

Earlier quoted context omitted.

The goal would be a higher amount of code sharing and perhaps a more consistent way to organize data and logic across platforms. React Native runs a JS VM in a separate thread and communicates to the native platform code (Java and objective c) to tell it where to draw things. The native code then passes things like touch events back to the JS thread. I want to replace the JS thread with native code to hopefully incre…

That sounds super cool! I was looking into writing Rust bindings to Yoga myself but then saw your library. I'd love to read a post about what you're doing once you've made sufficient progress with it.

Yeah I should probably write a post to get more of the concrete ideas out there, I'm afraid I don't have enough time to work on it right now.

However, another contributor to my repo is doing some interesting work with Yoga here (though it's not quite related to cross-platform mobile apps):

https://github.com/victorporof?tab=repositories

I say "contributor" but he's basically the one doing the heavy lifting on the bindings lately

Re: React Native and Yoga Both Given MIT Licence by Facebook

#124

Earlier quoted context omitted.

Of course it hurt their software adoption rate. You have very public spats by wordpress and apache over this. Think of people who couldn't convince their boss to use react / react-native because the legal department saw that PATENTS file and said NO WAY. I think they are making these moves because they see that they are going to be in a weaker position in the future and need to open their grip on these projects to ma…

The irony being that the Apache license has an identical clause.

The Apache patent grant and retaliation clause says that if you issue a lawsuit alleging that the licensed software infringes on a patent, then you lose your patent grant to that software.

The old Facebook license said that if you issue a patent lawsuit against Facebook, you lose the license to the software. That is in addition to the retaliation clause about the software itself.

So if you are using any OSS from Facebook, and then Facebook comes in and infringes on some unrelated patent you own, you need to stop using that software before suing or you just don't sue.

Post reply on HN