I'm part of the group that thought "what the hell?" when I first saw the React syntax - but seeing this has completely changed my mind and I'm really looking forward to picking up React as soon as possible. If this delivers on its promises (no reason to assume it won't, seeing as it's already being used in large apps) then it's going to change the mobile development landscape. It sounded like they may even be hinting…
Introducing React Native [video]
181–190 of 193 posts
Re: Introducing React Native [video]
#182Can anyone please explain what a "declarative API" is, and why that is better than an imperative? He claims this is the best part of the framework, but I'm just left with a big "what?" since I don't understand what the hell that sentence means. I mean he admits he had to build a bunch of products before he understood the concept, but didn't waste a single slide to explain it in the presentation.
The briefest explanation is that imperative is a list of instructions describing how you want something done. A declarative approach describes what you want done. The typical example for this is SQL - you don't tell an SQL database how to run a query, you tell it what you want, and it figures it out. In Reacts case, you describe your application in terms of components that know how to render themselves given differen…
Re: Introducing React Native [video]
#183That's it. I'm finally going to port GridBagLayout to Javascript.
The memories of GridBagLayout still haunt me to this day (see username). This is a classic gridbag cartoon: http://madbean.com/anim/totallygridbag
Re: Introducing React Native [video]
#184I'm part of the group that thought "what the hell?" when I first saw the React syntax - but seeing this has completely changed my mind and I'm really looking forward to picking up React as soon as possible. If this delivers on its promises (no reason to assume it won't, seeing as it's already being used in large apps) then it's going to change the mobile development landscape. It sounded like they may even be hinting…
Since React Native is using the background thread for everything, this limits what can be done with the UI. E.g. how are they going to handle user-directed animation if the operations are not run on the UI thread? These things can't be done in an async fashion... Curious to find out more about their architecture, leaving the judgement for later.
Re: Introducing React Native [video]
#185Look at 10:00 ... that sounds very much like what we were going through and building at the exact same time
http://platform.qbix.com ... self contained components, completely parallelizable etc. Also in PHP and JS :)
And it all works!
Re: Introducing React Native [video]
#186Wow. I've been struggling to teach myself objective-c, never getting beyond the simple tutorials. So I'm happy to try this out. I currently have an MVP in ionic framework and would love to port this over to react. Though I should say that Ionic is amazing in its own right. Also, I tend to agree with some of the comments in this thread -- regular Joe user can't really tell the difference. Ionic on an iPhone looks damn…
Same situation here, using Ionic, but this seems extremely cool. I'll definitely build something with ReactNative as soon as I can. We're only making a news app, but Ionic feels completely native once we optimized it correctly and use the latest beta features. As for Android being slow does that include 4.4 devices, or just older version of Android? If it's older devices, you should try the new Ionic beta with Crossw…
However, I have not yet optimized images or CSS. I'll probably spend next week looking into optimizations for ionic.
Re: Introducing React Native [video]
#187Earlier quoted context omitted.
Same situation here, using Ionic, but this seems extremely cool. I'll definitely build something with ReactNative as soon as I can. We're only making a news app, but Ionic feels completely native once we optimized it correctly and use the latest beta features. As for Android being slow does that include 4.4 devices, or just older version of Android? If it's older devices, you should try the new Ionic beta with Crossw…
On your suggestion I tried it on my phone (4.1.2). The rendering improved, but speed is still an issue. Scrolling with big images is jerky. However, I have not yet optimized images or CSS. I'll probably spend next week looking into optimizations for ionic.
Re: Introducing React Native [video]
#188Earlier quoted context omitted.
> We cross compile to Objective-C with j2objc, and cross-compile to JS via GWT, the data binding, controllers, are shared code on all platforms that run full speed native, while the UI templating language on each platform is platform native (e.g. angular directives directly in Android XML files) Honestly, this sounds like quite a technical achievement, but... WHY? WHY? Why... are we still forced to go through these e…
Long term, I want the Web to win. Eventually I think it will. In the 90s, no one ever thought apps like Gmail, Docs, or Maps could exist in the browser, and now no one questions that an Office suite can be done. Eventually mobile performance, and API surface area will increase to the point where they're "good enough". Then they'll be an inflection point where people write Web apps for cross platform-ness for all but…
Re: Introducing React Native [video]
#189Earlier quoted context omitted.
> 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 re…
Re: Introducing React Native [video]
#190I'm part of the group that thought "what the hell?" when I first saw the React syntax - but seeing this has completely changed my mind and I'm really looking forward to picking up React as soon as possible. If this delivers on its promises (no reason to assume it won't, seeing as it's already being used in large apps) then it's going to change the mobile development landscape. It sounded like they may even be hinting…
We've announced a similar framework in December, it already has live-reload development with developer apps for Android and iOS https://eclipsesource.com/blogs/2015/01/15/fast-dev-roundtri... Since React Native is using the background thread for everything, this limits what can be done with the UI. E.g. how are they going to handle user-directed animation if the operations are not run on the UI thread? These things c…