Live data from Hacker News

Introducing React Native [video]

youtube.com

121–130 of 193 posts

Re: Introducing React Native [video]

#121
post #45

I wish they'd go into more detail on why they can't make an app like paper in the browser environment. They mentioned something about Web Workers being crippled and later on explained how their framework puts JavaScript in it's own thread by default. I'm also wondering why in their experience no one ever comes close to native widgets when imitating them in a Web apps.

Indeed. If I look at Slack which I believe is actually a wrapped HTML5 on iOS + Android it looks already very good. But it doesn't have a lot of gestures+animations+images, so that might be the difference.

The desktop app is HTML5

Re: Introducing React Native [video]

#122

Earlier quoted context omitted.

Similar in this sense: 1) it uses templating (in our case, HTML, Android XML, and XIB) 2) it is cross platform, runs everywhere, even server 3) it produces native apps It's different in this sense: 1) it doesn't do DOM diffing, it does two-way data-binding 2) it's statically compiled to native code, it doesn't try to run JS in native platforms, and doesn't require any async seems between between the native platform (…

"We're pretty sour on the idea that write-once run-anywhere UIs are possible." The guy in the video said a similar thing. It sounds like they want people to be able to use the same tools for each platform, not necessarily share all the code.

Oh, I missed that. I'm a big fan of React (working on DOM-diffing stuff myself for GWT), but I skimmed the video, didn't watch it through yet (rushing to airport)

Re: Introducing React Native [video]

#123

I'm Jordan and I'm on the React (and React Native) team. There's been some great questions and insight on this thread. React Native offers a ton of benefits around productivity (and ability to use React of course), but since there are many questions about performance, I thought I'd share some of my own personal perspective on the matter. React Native is very different than other approaches because: 1. We're not promi…

Is there plan for windows phone ?

Re: Introducing React Native [video]

#124
post #65

I understood that the native react serializes the ui "DOM" to some format and sends it to the native process. Will the native rendering engine be open source and/or will the protocol be open/specified ? This could be handy for embedded targets.

Yep, you've got the gist of it. We render the app in JS, React creates this view hierarchy (still in JS), this is serialized and sent over the bridge (asynchronously) to the native engine who then creates the equivalent native view hierarchy and renders it. The source code for the iOS native engine (and the JS infra, and some examples) will be given to attendees of React.js Conf tomorrow (Jan 29). The iOS and Android…

Is this native engine still html based (eg blink engine or webkit) or is it using the platforms drawing engines? We are currently building user interfaces for STB platforms using a a js platform mapped to a native canvas running on v8. If we could use the react protocol it would be great.

Re: Introducing React Native [video]

#125
post #38

I wish they'd go into more detail on why they can't make an app like paper in the browser environment. They mentioned something about Web Workers being crippled and later on explained how their framework puts JavaScript in it's own thread by default. I'm also wondering why in their experience no one ever comes close to native widgets when imitating them in a Web apps.

> Web Workers being crippled As Tom said, you can't do layout or prerendering-to-bitmap in a web worker: there's no DOM or Canvas API unless you bring your own, and despite Emscripten it's foolhardy to bring your own. If you want to decode a JPEG, you have to do that on the main thread and pass it to the worker right now (except in Firefox with its nonstandard ImageData API). [0] Which brings us back to square one. >…

The curves used in iOS are all pretty standard, they're easily to replicate if you want.

It's pretty easily to replicate iOS functionality in iOS itself just because it's a better environment, it's not the 'secret' numbers.

But if taking the example of Paper, it's built on top of Pop which is absolutely open source and handles all the animations: https://github.com/facebook/pop.

So in theory you should be able to replicate all this stuff on the web, but you can't because it's just not build with highly responsive UI in as the focus.

Re: Introducing React Native [video]

#126

Sorry, dumb question, don't feel like watching the video: What platforms are targetted? Out of, say, iOS, Android, Linux/X11 desktop, Windows desktop, WinRT, OSX?

Yep - is there any reading-based info on this? I can't bear absorbing tech info via a channel as slow as watching or listening to someone...

Link please!

Re: Introducing React Native [video]

#127

Sorry, dumb question, don't feel like watching the video: What platforms are targetted? Out of, say, iOS, Android, Linux/X11 desktop, Windows desktop, WinRT, OSX?

Yep - is there any reading-based info on this? I can't bear absorbing tech info via a channel as slow as watching or listening to someone... Link please!

All I've managed to find so far: https://www.progville.com/javascript/react-native-apps-react...

Re: Introducing React Native [video]

#129

I'm Jordan and I'm on the React (and React Native) team. There's been some great questions and insight on this thread. React Native offers a ton of benefits around productivity (and ability to use React of course), but since there are many questions about performance, I thought I'd share some of my own personal perspective on the matter. React Native is very different than other approaches because: 1. We're not promi…

Hi Jordan, I'm interested on which CSS rules causes reflows?

http://csstriggers.com/ (appears down at the moment, in the meantime see http://css-tricks.com/css-triggers/)

Re: Introducing React Native [video]

#130

I'm Jordan and I'm on the React (and React Native) team. There's been some great questions and insight on this thread. React Native offers a ton of benefits around productivity (and ability to use React of course), but since there are many questions about performance, I thought I'd share some of my own personal perspective on the matter. React Native is very different than other approaches because: 1. We're not promi…

[deleted]
Post reply on HN