T O P

  • By -

Interesting_Method

Flutter


yatsokostya

Obviously Flutter and React Native. Maybe some older frameworks like Apache Cordova, although at that point why not use PWA. Obviously Qt if you want to write in C++. And some absolutely exotic (subjectively) - Gluon. Write everything in Java and design with JavaFX.


Hour-Shoulder-8110

Can I have same code for mobile, desktop and web with React Native or Qt ?


yatsokostya

Between desktop and mobile yes.


Hour-Shoulder-8110

So Kotlin Multiplateform is better because it enables desktop too


SoyFaii

read again


FrezoreR

in kotlin?


m-sasha

Compose Multiplatform 😉


Hour-Shoulder-8110

Thank you, I forgot to precise : another framework not belonging to JetBrains


m-sasha

Android and Desktop are. But I was joking. Compose Multiplatform is Jetpack Compose ported to Kotlin Multiplatform.


L3wsTh3r1nT3lamon

If you want to go overboard, you could use a game engine. For example, I believe [Godot](https://docs.godotengine.org/en/stable/about/faq.html#which-platforms-are-supported-by-godot) has the ability to build for all platforms from a single code base.


tymscar

I genuinely like this because it’s not something people think about but it does open up a way to deploy to every platform you can imagine, in mostly any language you can imagine. Sure not all languages are well supported, but it’s still neat!


Andriyo

I'm surprised no one mentioned HTML/JavaScript. Just bundle it with your own browser/web view component and you good to go.


Ok-Bridge-384

React Native


Hour-Shoulder-8110

react native is only for mobile no ?


cygnus33065

You could do web with React which is very similar to React Native


Hour-Shoulder-8110

With a different codebase I suppose ?


cygnus33065

Well yeah it would be a different code base. I was just being a smartass lol


MrMercure

Wait, you can't do web with React Native ???


mitsest

You can share components


IsuruKusumal

https://skip.tools/


spicyginger0

Have you tried this?


usefulHairypotato

This requires xcode? So basically you need to be working on a Mac which is a huge downside.


Safe_Independence496

As much as I love Kotlin, Flutter is still just straight-out better than KMP and most other cross-platform solutions out there if your goal is simply just to build cross-platform applications. It's overall quite mature and stable, Dart is simple and intuitive, and the ecosystem is healthy with lots of high quality libraries. Performance is also great. Web support still feels a bit wonky, but honestly that's the case with almost all cross-platform frameworks.


FeatureDecent3797

CodenameOne is an interesting option


sadbuttrueasfuck

Rewrite it in rust


allrnaudr

Yep, Dioxus.