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

-21

u/bartturner May 06 '19

Think backing the wrong horse. The future suspect will be Flutter including desktop.

Flutter has a more efficient architecture.

0

u/[deleted] May 06 '19

[deleted]

46

u/salgat May 06 '19

For people not aware, Google corporate culture heavily rewards employees who release new products/features with large adoption rates as one of the few ways to get promoted. This strongly discourages anything requiring support/maintenance once it becomes mature. Which is why Google has such shitty support and seemingly abandons projects with large userbases.

7

u/PorkChop007 May 07 '19

That explains the sorry state of YouTube mobile app...

28

u/well___duh May 06 '19

Hell, they're thinking of replacing the most popular mobile OS on the planet with an entirely new OS (Fuschia). Google is king of uncertainty.

14

u/[deleted] May 06 '19

There are very good reasons for that. Also I would be very surprised if they don't make it support Android apps so it's not like they would be starting from scratch.

8

u/rorykoehler May 07 '19

Do you have a link to an article outlining the good reasons? Curious why they want to do this

7

u/[deleted] May 07 '19

No, but the main one I believe is Linux's driver ABI, in that it doesn't have one. You can't update Linux independently of its drivers. That's part of the reason for the update mess.

18

u/[deleted] May 06 '19

Flutter reimplements all UI elements in its own engine, its unlikely that the majority of people would make that compromise. Imagine what it could be missing jumping from platform to platform or even consider accessibility. For instance, google maps was something missing not too long ago. Consider how difficult it was to create google maps in Flutter as opposed to React Native. In React Native you needed a native library to be able to see and interact with google maps, the Flutter team needed an entirely new library in Dart for Google Maps and iOS users have no option to use Apple Maps. Now imagine how many API’s will either be missing or can’t be implemented across the spectrum of Flutter target platforms.

2

u/[deleted] May 07 '19

Yes, thanks, that sums up very nicely why I think that flutter is a nice idea which sounds like a nightmare to maintain.

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.

5

u/spacejack2114 May 07 '19

If MS is serious about React Native, they can optimize the rendering backend for Windows or even optimize Windows for React. Even if you don't care about cross platform it might be a great way to make Windows apps.