Live data from Hacker News

React Native for Android

code.facebook.com

171–180 of 248 posts

Re: React Native for Android

#171

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 have zero native development experience on any mobile platform and write apps abstracted away in Scheme https://github.com/part-cw/lambdanative/wiki/Getting-Started

After you write/run a lot of tests to make sure the app does what it's supposed to (there's paid services for this kind of testing too) http://googletesting.blogspot.ca/2013/08/how-google-team-tes...

This React abstraction can use Chrome Developer Tools for debugging though, that's pretty awesome.

Re: React Native for Android

#172

Earlier quoted context omitted.

With Native ios/android, you get a selection of UI components to use. If your designs don't fit any of those components, you either have to build something from scratch or alter to the design to fit the Native UI language. Usually the prospect of 'building from scratch' is enough to deter people from building components that don't fit the device's interface. So you generally end up with apps that all fit the native d…

so rn makes it easy to create components that may not fit in the platform's UI standards?

Yes. But it also makes it easy to create components that do fit the platform, thus "the issue is the developer."

Re: React Native for Android

#173

This might be a stupid question, but, would it make sense to have React Native also for Windows, Linux, OS X, etc.?

At least for Windows 8/10, I'm not sure if something like React Native is really necessary, since the platform itself already has built-in support for making "native" apps in HTML/JS.

All you would need is a React wrapper around the UI controls, like this one: https://github.com/winjs/react-winjs

Re: React Native for Android

#174
post #134
post #56

Earlier quoted context omitted.

I'm not a lawyer, but you might have missed this clause in the patent grant: > Notwithstanding the foregoing, if Facebook or any of its subsidiaries or corporate affiliates files a lawsuit alleging patent infringement against you in the first instance, and you respond by filing a patent infringement counterclaim in that lawsuit against that party that is unrelated to the Software, the license granted hereunder will n…

Your example is solely if THEY initiate a lawsuit then you're allowed to respond, not if they do something against you that warrants suing them first. Edit: E.g. They can copy your whole business, design and all, and if you're using React and sue them - then they can use that against you / you'd have to immediately cease using it; I'm not actually sure what the outcome would be if a license automatically expires.

Your example is solely if THEY initiate a lawsuit then you're allowed to respond, not if they do something against you that warrants suing them first.

Note that this is specifically regarding a patent assertion; i.e. the patent grant is not revoked if you bring legal action against Facebook for another reason, including trademark or copyright issues.

Edit: E.g. They can copy your whole business, design and all, and if you're using React and sue them - then they can use that against you

See above – this would specifically only apply to patents.

you'd have to immediately cease using it

This is not necessarily true – it just means that you lose your patent grant to React. There is no assertion here that Facebook hold any patents on React. It's obvious why this would be the case – if you bring a patent suit against Facebook, then they revoke any patent license they've granted you. I would expect any patent license – for open-source software or otherwise – to be the same.

Granted, this does nothing to affect the wider issue of a broken patent system.

Re: React Native for Android

#175

Earlier quoted context omitted.

I've done similar with inotify (dnotify before that) and Python now for over a decade, and it is an interface than can automate anything. I use it with doc generators also. I believe I used something similar called fam in the 90's but that may have only been on SGI.

Filesystem watching is only part of the equation though. Live reload has been available for the web and various other platforms for a long time, but the traditional approach to live reloading does not preserve application state. These new hot reload implementation allows your app to be reloaded with your new changes without affecting the state of the application, and is not practical unless your application has been…

Sounds neat, I do love a rapid feedback loop, although I may have done similar with a debugger and the reload built-in come to think of it.

In the types of apps I think we're talking about, typically most state is in the database and not much is going on in the client.

Re: React Native for Android

#176
post #136

Earlier quoted context omitted.

This is no longer true. It was at one point, but Facebook have since amended their patent grant as a result of public pressure.

I'm fairly sure you're mistaken. They changed it so it was better, however you still can't sue them or take any acton against them or the license is revoked. Edit: > The license granted hereunder will terminate, automatically and without notice, if you (or any of your subsidiaries, corporate affiliates or agents) initiate directly or indirectly, or take a direct financial interest in, any Patent Assertion: (i) agains…

Do note that the clause you quote applies only to patent assertions. This means that your patent license is revoked if you bring a patent action against Facebook (or if you sure someone else for using React), but not if e.g. you sue them for infringing your copyright, or any other matter.

This does seem like it would be a standard clause for any patent agreement with another party, but IANAL.

Re: React Native for Android

#177
post #99

Earlier quoted context omitted.

If you're going cross platform, the key is to know in detail the limitations of this approach, even if it takes longer to make that initial decision about what path to take. Different cross-platform tools have different approaches, but as a concrete example take Corona SDK. You need no native platform knowledge and your app runs inside the Corona runtime, which makes some difficult things easy but some easy things --…

the key is to know in detail the limitations of this approach There's the rub. If you don't know anything about the native platform then you "don't know what you don't know". The NativeScript demo shows how to pull in a native ObjC function (a string related method I think), but if you start with no background in the native libraries how would you even know when you could be leveraging a native library function inste…

Quite right. It's true that if you don't have a background using the native libraries it's going to be difficult, so one approach would be talking to developers who do and doing research like reading blogs and discussions like this one...

Re: React Native for Android

#179
post #170
post #161

Earlier quoted context omitted.

Do you really believe the facebook production app is built 100% with React Native ?

yeah > Facebook Ads Manager is built entirely using React Native. https://code.facebook.com/posts/1014532261909640/react-nativ...

Ads Manager =/= Facebook app for "users"

Re: React Native for Android

#180
post #20

"Today, we're happy to release React Native for Android." https://github.com/facebook/react-native/commit/42eb5464fd8a... This comes in time for Facebook to meet its pledge. http://www.reactnativeandroid.com/

Big props to the person that bought the domain and setup the countdown. It stimulated the team to actually meet this deadline :)

Thank you! I'm glad it dit!
Post reply on HN