News for hackers. Stuff that matters.
Re:Using Flutter to build a native-looking desktop app for m... by fabiospampinato on Wednesday November 10, 2021 @10:33AM (#29175725)
That's a practical solution, but IMO React is playing a fundamentally different game here, they have Native for mobile apps, and third-party (!) support for Windows and Mac (what about Linux?). Native doesn't even support the web, like React and React Native are two different things, they just share a somewhat similar UI framework basically.

Flutter on the other hand is architected as a solve-it-all solution. They even went as far as designing Dart rather than hacking a decent solution on top of JS and the current mess of web standards. IMO that's a much more interesting and powerful approach, that isn't fully ready yet, but if it ever becomes actually good I'll personally probably jump ship and use it for everything.

Re:Using Flutter to build a native-looking desktop app for m... by leodriesch on Wednesday November 10, 2021 @01:41PM (#29178554)
And that’s the biggest issue that Flutter has IMO. They first launched the mobile platforms, which where in decent shape, then they came out with Flutter Web, which the last time I checked is still not in any place where it is actually usable, then instead of fixing it they just started adding desktop support.

Like man just calm down and stabilize for a moment, it’s not an arms race.

In my mind Flutter isn’t native to any platform rather than all of them, so I like React Native much more these days.

Re:Using Flutter to build a native-looking desktop app for m... by cercatrova on Wednesday November 10, 2021 @11:25AM (#29176507)
React Native Web exists [0]. But I agree, having parts be third party doesn't mesh well with being a complete framework for building apps (on whatever platform you need).

[0] https://github.com/necolas/react-native-web

Re:Using Flutter to build a native-looking desktop app for m... by fabiospampinato on Wednesday November 10, 2021 @11:31AM (#29176592)
It exists, but it's a third-party thing, the value proposition here is not the same, Flutter plans to address to entire problem itself, React Native is only concerned with mobile basically, for everything else you are at the mercy of a third-party, which among other things may just stop maintaining the very platform you depend on, how can one build anything serious on top of that?
Re:Using Flutter to build a native-looking desktop app for m... by cercatrova on Wednesday November 10, 2021 @11:36AM (#29176674)
Yep agreed. I tried to once wrangle together all the React frameworks to make something like what flutter offers, but in the end I gave up and used Flutter just because of how easy it makes it to run everything cross platform. Since the RN versions for desktop are third party, I didn't have much confidence in them being supported well, as you said.
Re:Using Flutter to build a native-looking desktop app for m... by gorbypark on Wednesday November 10, 2021 @04:07PM (#29180807)
The Facebook team has alluded a number of times about making some of the “third party” platforms become first class members of react native. They haven’t officially announced anything but I’m guessing Microsoft’s work on react native for Windows/macOS will be folded into the main repo at some point in the near future. Facebook (seemingly based on git commits) has a number of full time employees collaborating with Microsoft on the Windows and macOS ports. Facebook messenger for desktop is already built with it.

I haven’t seen any type of movement on react native web becoming something official, but it works amazingly well at the moment and is in use in production at Twitter.

We just need a Linux port and the react native ecosystem will be pretty complete.

Re:Using Flutter to build a native-looking desktop app for m... by poopooracoocoo on Monday November 15, 2021 @02:23PM (#29231469)
Last I checked Facebook Messenger has yet to use RNW: https://twitter.com/Eli_White/status/1422790525694844928?s=2...

RNW actually has about three teeny tiny customers that no one has heard of except for the Microsoft Store on Xbox. So much for Microsoft's "Universal" Windows Platform! Lmao

Re:Using Flutter to build a native-looking desktop app for m... by gorbypark on Tuesday November 16, 2021 @06:34PM (#29247625)
Hard to say from that tweet what they mean. I found two blog posts from the React Native team that mention RN on Desktop and Messenger. Both are similarly vague if this is some internal test happening or if the actual production app is using it. https://reactnative.dev/blog/2021/08/26/many-platform-vision and https://reactnative.dev/blog/2021/08/19/h2-2021
Re:Using Flutter to build a native-looking desktop app for m... by poopooracoocoo on Wednesday November 17, 2021 @12:32AM (#29249569)
I've seen the same posts you have linked and can only conclude that they've currently been using either React Native for Web or are using a React website in an Electron app, and are planning on releasing a RNW app. The current app could perhaps be using RNW but targeting win32.

But note that someone from Microsoft linked that tweet in response to a question of who uses RNW: https://github.com/microsoft/microsoft-ui-xaml/issues/6050#i...

Re:Using Flutter to build a native-looking desktop app for m... by gorbypark on Tuesday November 16, 2021 @06:43PM (#29247706)
There's some suspiciously React Native macOS looking components in Messenger for macOS (native macOS text boxes, native macOS blurred backgrounds, etc). I'm thinking this is either fully React Native, or they have some sort of RN/Electron hybrid going on (which is a thing, apparently).
Re:Using Flutter to build a native-looking desktop app for m... by poopooracoocoo on Wednesday November 17, 2021 @12:36AM (#29249592)
yeah idk about the macos app personally but i can say that the windows app is definitely electron. at least last time i checked.

by 'react native' i'm guessing you're referring to RNW, although a port of their iOS app is possible Facebook had previously just used a port of their iOS for their Windows app too.

Re:Using Flutter to build a native-looking desktop app for m... by gorbypark on Wednesday November 17, 2021 @04:44PM (#29259237)
I think we need a new acronym. RND (React Native Desktop)? Microsoft is doing React Native for macOS alongside of React Native Windows. The macOS port is a little bit behind the Windows one, but actively being worked on by Microsoft and Facebook employees, afaik.
Re:Using Flutter to build a native-looking desktop app for m... by ssijak on Wednesday November 10, 2021 @11:35AM (#29176654)
Twitter web is done with React Native.
Re:Using Flutter to build a native-looking desktop app for m... by woah on Wednesday November 10, 2021 @01:17PM (#29178168)
It's been 10 years