3 ms·
All of this looks great and I'll give it a try as soon as I get some spare time, but there are a couple of things I didn't understand. 1) Is this cross platfor
by pmontra 12y ago
All of this looks great and I'll give it a try as soon as I get some spare time, but there are a couple of things I didn't understand.
1) Is this cross platform or are you still going to have separate code bases for the UIs of iOS and Android? Looking at the code in the demo there are components like View, Text and Image. As basic as they are, are they the same on iOS and Android (same behaviour, same arguments)? It was pretty clear from the first minutes of the video that View is build on top of the native view of iOS (he showed the objC code). Is that React code building for Android?
2) I guess that one must still be proficient in iOS and Android, unless they make the monumental job of rewriting all the iOS and Android documentation for the React components they implemented. I expect to have to reference the native docs to understand the meaning of the arguments and do the job of mapping React to native. That has always been a pain point in many UI abstraction layers.
- SwearWord 12y agoBased off of the learn once write anywhere idea they put forth in the video the codebases will be separate. I think what they were trying to solve is the the issue that currently you need to learn multiple layout engines (CSS, iOS, Android) as well as the different model-view patterns from each platform. Now you can just get really good at React and that will help your productivity on all platforms.
- Guillaume86 12y agoAbout 1) They specified yesterday the goal is not "write once, run everywhere" but "learn once, write everywhere". They are also working on the Android version. Of course I guess a cross platform framework built on top of that would be possible.
- rpwverheij 12y agoView, Text and Image should be cross-platform, and might even be targeted for web at some point. And more components could be. But they emphasised that you should be able to _choose_ how much code you want to re-use cross-platform, and that you should always put energy in targeting and perfecting for specific platforms