r/programming • • May 06 '19

Microsoft launches React Native for Windows

https://techcrunch.com/2019/05/06/microsoft-launches-react-native-for-windows/
187 Upvotes

114 comments sorted by

View all comments

Show parent comments

6

u/pknopf May 06 '19

Qt does this just fine.

7

u/[deleted] May 06 '19

Does what? Reimplement every UI element on every platform? Because that hasn’t been done with any framework.

5

u/pknopf May 06 '19

Flutter reimplements all UI elements in its own engine, its unlikely that the majority of people would make that compromise.

Qt does just fine doing exactly this. No issue.

2

u/[deleted] May 06 '19

I just gave the example of Apple maps, how could you even begin to reimplement that?

4

u/pknopf May 07 '19

8

u/[deleted] May 07 '19 edited May 07 '19

This is what React Native does, they didnt build it from scratch like in Flutter. They integrated with an existing library. You cant build a new engine in an app sandbox on a mobile device than integrate things like Map Views without writing them from scratch.

4

u/jcelerier May 07 '19

This is what React Native does,

no, the Qt version is a complete, from-scratch, C++ implementation - the source code is here. https://github.com/qt/qtlocation

Qt has to be a whole reimplementation, because it is the native framework for many systems, in particular in embedded (but also for e.g. KDE) so it cannot rely on some system API being here.

3

u/[deleted] May 07 '19 edited May 10 '19

~~Clearly theyre made using available c++ libraries like osm and mapbox. ~~ Guess they are made from scratch.

Either way, if you wanted Google Maps or Apple Maps on a mobile device, the amount of effort required to replicate a Map View in Dart or C++ would not be worth it. Also I’m pretty sure Apple Maps doesn’t have any sort of API that you can use to create your own MapView for.

I say replicate because people dont want Mapbox, they want the same map provider with the same exact features that are available everywhere else in their mobile app ecosystem.

I’m not saying it cant work but like, why rebuild ARKit and ARCore? They already exist.