While working at a hospital, I built an Android application called PatientComm to help patients who had difficulty speaking express their needs using picture-and-text cards. The project prompted another comparison of cross-platform frameworks, this time chiefly for mobile, with a look at possible desktop expansion.
âWrite once, run on multiple platformsâ sounds straightforward, but frameworks promise to reuse different things. Some share business logic, others the UI as well. Some draw their own interfaces, some connect to platform controls and some translate source code into platform languages. Drawing on my 2025 investigation, this article compares the problems they solve and the costs involved.
Separate shared logic, shared UI and access to system capabilities
Consider an ordinary application with images and text. Cross-platform work has at least three layers:
| Layer | Typical contents | What to verify |
|---|---|---|
| Data and business logic | Data structures, filtering, sorting, network requests | Can the code be reused? Do its dependencies support the target? |
| UI and interaction | Lists, forms, animations, navigation | Are components shared? Does appearance or behavior need platform-specific adaptation? |
| Platform capabilities and delivery | Photo library, files, sound, installation and updates | Is there an implementation for each platform? How do you build, sign and ship resources? |
Sharing a sort function is comparatively simple. Sharing an image picker involves system interfaces. Even if both platforms display the same UI, touchscreen and desktop mouse interactions may need different designs. The value of a cross-platform framework lies in eliminating duplicated work. A platform count alone cannot measure that.
These approaches help distinguish frameworks:
- Share logic and keep a UI for each platform. Put business code in a common module and implement UI and system integration per platform. Kotlin Multiplatform allows this approach.
- Share the UI and let the framework draw it. Flutter and the shared UI route in Compose Multiplatform put more of the interface in a common framework, facilitating visual consistency.
- Share a UI description and connect it to platform UI. React Native and Kuikly provide a common component development model backed by platform implementations. Control behavior and native module differences still need attention.
- Compile code to platform languages. uni-app xâs UTS approach translates code into the corresponding platform language. Native calls are more direct, but available language features and libraries depend on compiler support.
These perspectives can coexist. How code is compiled, how UI is drawn and how system APIs are called are distinct questions. Neither ânativeâ nor âcustom-drawnâ alone establishes performance.12345
Compare the main options
The table combines a framework comparison and official materials around the dimensions relevant to this investigation. The trade-offs explain the options and are not benchmark rankings under common test conditions. Platform coverage reflects the cited 2025 materials.1
| Option | Language and UI approach | Main advantage | Costs | Expansion beyond mobile |
|---|---|---|---|---|
| Flutter | Dart with its own widget and rendering system | Consistent UI for a jointly maintained visual design | Learn Dart and the widget system. System capabilities still require plugins or native integration. | Desktop and web targets, with plugin and interaction support to check.2 |
| React Native | JavaScript/TypeScript and React with native components | Retains React development patterns and can be embedded incrementally in native applications | Native dependencies, upgrades, architecture compatibility and platform styling differences | Windows and macOS use separate platform projects. Mobile dependency availability alone is insufficient.6784 |
| Kotlin Multiplatform + Compose Multiplatform | Kotlin with optional shared logic alone or shared Compose UI | Reuse Kotlin knowledge and choose what to share | Library compatibility across compilation targets and division of platform API work | Desktop and web routes. Compose for iOS became stable in May 2025. Evaluate each target individually.391011 |
| Kuikly | Kotlin/KMP with a DSL and thin native layer | Puts much UI logic in shared Kotlin, alongside native integration and dynamic delivery | Its own component system, with different constraints in Native and JS modes | The sources emphasized mobile, HarmonyOS and mini programs, without listing PC support at the time.1 |
| Lynx | Web-style development, ReactLynx, native UI engine and dual-thread model | Builds on frontend skills and emphasizes first-frame and interaction responsiveness | Learn a new runtime model and verify components, plugins and toolchain | Early 2025 open-source materials focused on mobile and web. Distinguish desktop plans from available implementations.112 |
| uni-app x | Vue-style interface and UTS, compiling to platform languages with native UI | Attractive for Vue/uni-app teams, with access to platform APIs | UTS differences from full JS/TS, platform conditionals and plugin migration | The sources emphasized mobile, HarmonyOS, web and mini programs, without listing PC support.15 |
One easily confused distinction is Kotlin Multiplatform versus Compose Multiplatform. The former is the foundation for sharing code, the latter an optional shared UI solution. They complement each other.
Flutter draws the UI to keep appearance consistent
Flutter uses Dart for UI and business logic. Widgets go through layout and painting and are ultimately presented by the engine. Flutter has its own widget implementations instead of simply substituting system buttons for every Flutter button. That makes a common visual design and custom interfaces easier across platforms.2
The trade-off is adopting Dart and the Flutter development ecosystem. Existing React or Vue pages cannot become Flutter widgets unchanged. What usually carries over is the requirements, design and ideas for logic independent of the UI.
Drawing UI also does not make Flutter the implementation of every system feature. Camera, photo libraries and platform SDKs still require plugins, platform channels or FFI. Evaluate UI capabilities separately from native dependencies. A consistent interface does not guarantee equal support for every plugin on every target.2
React Native reuses React patterns alongside native projects
React Native retains Reactâs components, state and data-flow concepts, but its UI and runtime differ from React DOM. Knowing React reduces onboarding effort. Existing web pages and CSS still require changes.6
Avoid judging it through an outdated architecture. React Native 0.76 had enabled the New Architecture by default in 2024. JSI, Fabric and the new native module system changed communication, rendering and scheduling between JavaScript and native layers. Calls do not universally have to use the legacy asynchronous serialized bridge. Projects must still verify that dependencies support their selected architecture.4
React Native can also join an existing native application gradually. Start with one screen and then manage its communication with the existing Android or iOS code. For a team with native projects, that migration path differs from rewriting an entire cross-platform application.67
For development feedback, Fast Refresh shortens the cycle after component edits, but module structure affects state preservation and some changes still trigger a full reload.13 Shipping still requires understanding Android Gradle, signing and release workflows. JavaScript does not eliminate native build work.1415
Kotlin: decide what to share, then decide on the UI
Lianmaoâs comparison puts the distinction concisely:
Compose MultiplatformïŒCMPïŒ æŻ UIïŒKotlin Multiplatform (KMP) æŻèŻèšćșçĄă
âCompose Multiplatform (CMP) is the UI. Kotlin Multiplatform (KMP) is the language foundation.â
âLianmao, âCompose Multiplatformâ section.1
KMP lets a team put common logic in a shared module while retaining platform-specific implementations. Share networking and data processing while keeping platform UIs, or choose Compose Multiplatform and share the UI as well.39
Jetpack Compose is Androidâs declarative UI toolkit. Compose Multiplatform shares many APIs and development patterns with it, but using @Composable in an Android project does not give it a multiplatform structure. Platform-specific classes, file access and third-party libraries must be separated or replaced.3
Kotlin teams can expand using familiar language and tools. In May 2025 Compose Multiplatform 1.8.0 declared iOS support stable. Desktop components and Kotlin/Wasm offered entry points to other targets.91011 Framework platform support and support from every project library remain separate questions.
How do I create a project when Android Studio on Ubuntu has no Kotlin Multiplatform template?
In July 2025, after investigating managing the SDK with Android Studio and coding with Cursor on Ubuntu, I wanted to try a multiplatform Compose project. I opened Android Studioâs New Project window as instructed but found no Kotlin Multiplatform on the left. I was advised to enable a plugin. On Linux, I could not even install it.
What matters is which operating systems that plugin version supported. In May 2025, introducing the plugin with its project wizard, JetBrains wrote: âIt only supports macOS for nowâ. Updating Android Studio on Ubuntu or repeatedly looking for a plugin switch would not fix the missing template at the time. The plugin provides the editor wizard. Gradle builds the generated project, and Linux can still develop Android and desktop targets.1617
That afternoon I searched for Compose Multiplatform tutorials and read the âEasier to get startedâ section of a JetBrains article. It provided another entry point: the Kotlin Multiplatform web wizard. For example, to display one greeting on an Android tablet and Ubuntu desktop:17
- Open the web wizard, enter a project name and choose Android and Desktop with a shared Compose interface. Download and extract the project. In Android Studio, choose Open, select the root containing
settings.gradle.ktsand wait for Gradle sync. The generated plugin versions and dependencies are designed to work together. - Find
src/commonMain/kotlin.commonMaincontains source compiled for all targets. Locate the templateâs@ComposableUI function and change its displayed text to âäœ ć„œïŒć€ćčłć°â (âHello, multiplatformâ). The Android entry pointâssetContent { ⊠}calls the shared UI, and the desktop window can call the same function. - Select the generated Android app run configuration and a running emulator. Click Run to see the change. From the root run
./gradlew tasks --alland find the desktop run task. If the list containsdesktopApp:run, execute./gradlew :desktopApp:runand compare the desktop greeting. Task names vary with the template version. Running the iOS target requires a Mac with Xcode.18
The wizard later moved too. In the official tutorial checked in 2026, after installing the KMP plugin in a compatible Linux Android Studio, use New Project â Phone and Tablet â Kotlin Multiplatform. The screenshot with Kotlin Multiplatform on the left is for IntelliJ IDEA. For the same symptom today, check the IDE and version first.18
Kuikly: another UI route within Kotlin
Kuikly also uses Kotlin/KMP but is distinct from Compose Multiplatform. According to the comparison I consulted, it uses its own DSL and a thin native layer, puts much UI logic into shared Kotlin code and offers different runtime modes.1
The interesting comparison is how Kotlin reuse, native integration and dynamic delivery fit together. Check the limitations of the particular mode, including the relationship between dynamic capabilities, threads, coroutines and platform dependencies. A common language does not make the components and runtimes interchangeable.
Lynx and uni-app x: two routes for frontend developers
Lynx: web development patterns with a different execution model
When Lynx was open-sourced in March 2025, it emphasized using existing web skills to build native UI and offered ReactLynx as a React entry point. A defining feature is dual-thread programming. Some interface work runs on the main thread and other logic on a background thread, with first-frame rendering and interaction responsiveness as priorities.12
This does not put the website inside a WebView or make existing React Native plugins immediately usable. The new execution model introduces boundaries: which thread runs which code, how platform capabilities are invoked, and whether the teamâs components and tools are available. For younger frameworks, distinguish working SDKs, documentation and product validation from plans to support more platforms.
uni-app x: familiar syntax, different compilation
The UTS approach in uni-app x aims to retain frontend development conventions while compiling into platform languages such as Kotlin on Android and Swift on iOS, then connecting to native UI and APIs.5
Platform integration is a strength, but the compiler defines which language features and libraries are available. TypeScript-like syntax does not make every JavaScript library runnable. Existing uni-app plugins also need compatibility checks for uni-app x.1 Vue/uni-app experience helps, while plugins, tools and targets still require separate evaluation.
Compare real development costs beyond platform coverage
A comparison table can narrow the options. For implementation, compare each against the same feature set:
| Check | Features to verify |
|---|---|
| UI and interaction | Long lists, text scaling, input methods, accessibility and layouts on different screens |
| Native capabilities | Image selection, file I/O, audio playback or a required third-party SDK |
| Development feedback | Whether a UI edit preserves state and whether errors lead back to your code |
| Dependencies and upgrades | Which platforms, runtime modes and framework versions core libraries support |
| Delivery | Build a release package and verify resources, permissions and startup on target devices |
Desktop support adds windows, menus, mice, keyboards and distribution methods. React Native Windows/macOS have corresponding platform projects. Compose has desktop-specific APIs.108 Mobile compatibility does not verify desktop dependencies. For Windows delivery, see the official publishing guide.19
Why a path alone tells little about packaged resources
Resource delivery is easy to overlook. A file readable directly in a development tree may require a resource API once packaged. Writable data needs a writable directory. This is related to the UI framework but operates at a different layer.
In earlier Electron projects I dealt with ASAR archives, extra copying of model directories and bundling an independent Node runtime. Later, seeing Androidâs AAR, I think I wondered whether similar constraints applied and whether resources could simply be copied into the final artifact. My saved searches went from âhow can a React Native configuration copy some files into the final packaged directory?â to âhow can resource files be copied directly instead of being packaged into an AAR?â
| Format | Role in building and running |
|---|---|
| ASAR | Electron archive for application code and resources. Some file APIs can read it like a directory, but it is read-only and some native calls require a real filesystem path. |
| AAR | Android library distribution format containing code, resources and a manifest, processed by the application build and incorporated into the final artifact. |
An AAR is neither an Android version of ASAR nor specific to React Native. Whether a resource works depends on whether its loading API accepts a stream, file descriptor or ordinary disk path. Merely including it in the package is insufficient.2021
For example, Androidâs AssetManager.open() reads packaged resources. openFd() requires an uncompressed resource to obtain a descriptor. Libraries accepting only regular paths may need the resource copied to an accessible application directory first.22 User-created or modified data also needs writable storage, separate from initial resources shipped with the app.
Back to the project: meet the known target first
I implemented PatientCommâs Android version in Kotlin and Jetpack Compose. I was also using it to learn native Android development. Card data lived in a JSON file, and custom images were saved separately.
On the morning of August 8 I wanted the patient to hear a âdingâ after tapping a card so they knew the tap registered. I tried system sounds and generating a short tone in code, but still could not hear it during debugging. Then I wondered whether the app could read the text on the card aloud. If a patient tapped âI would like some water,â someone nearby could understand the need without looking at the screen.
I investigated reading Chinese and English aloud in an Android app, known as text-to-speech (TTS). I started with an Android speech tutorial, then followed an article on Coqui TTS to an introduction to Orpheus TTS and looked at both repositories. Reading the cards aloud was still research. PatientComm only contained code for playing a feedback sound.2324
That was the outcome of this investigation, without implying the alternatives could not do the job. A currently Android-only app can start native while exploring future cross-platform routes. Teams with existing React, Kotlin or Vue code face different migration costs.
Selection comes back to target platforms, existing code, team skills and required native dependencies. For UI maintained across platforms, compare unified rendering options. To retain per-platform UIs, consider sharing logic first. With React or Vue experience, investigate native integration and delivery in the corresponding ecosystem. The comparison table helps formulate the questions, then real features can validate the choice.
References
Footnotes
-
æç«. (2025, May 19). Comparing 2025 Cross-Platform Framework Updates and Releases: An All-New Edition. Zhihu. https://zhuanlan.zhihu.com/p/1907079559414776754 See âCompose Multiplatform,â âKuikly,â âLynx,â âuni-app xâ and the final comparison table. Quotation from âCompose Multiplatform.â Access date: August 8, 2025. â© â©2 â©3 â©4 â©5 â©6 â©7 â©8
-
Flutter contributors. (n.d.). Flutter architectural overview. Flutter documentation. https://docs.flutter.dev/resources/architectural-overview See âArchitectural layersâ and âIntegrating with other code.â Access date: August 8, 2025. â© â©2 â©3 â©4
-
JetBrains. (n.d.). Relationship between Compose Multiplatform and Jetpack Compose. Kotlin Multiplatform documentation. https://kotlinlang.org/docs/multiplatform/compose-multiplatform-and-jetpack-compose.html Access date: August 8, 2025. â© â©2 â©3 â©4
-
The React Team. (2024, October 23). New Architecture is here. React Native Blog. https://reactnative.dev/blog/2024/10/23/the-new-architecture-is-here See âWhat is the New Architecture,â âNew Native Modulesâ and âGradual Migration.â Access date: August 8, 2025. â© â©2 â©3
-
DCloud. (n.d.). Comparison of Cross-Platform Development Frameworks. uni-app x documentation. https://doc.dcloud.net.cn/uni-app-x/select See the UTS compilation route in âuni-app x.â Cited for implementation only, without adopting promotional conclusions comparing performance across frameworks. Access date: August 8, 2025. â© â©2 â©3
-
Meta Platforms, Inc., & React Native contributors. (n.d.). Communication between native and React Native [Version 0.80]. React Native documentation. https://reactnative.dev/docs/0.80/communication-android Access date: August 8, 2025. â© â©2 â©3
-
Meta Platforms, Inc., & React Native contributors. (n.d.). Integration with Existing Apps [Version 0.80]. React Native documentation. https://reactnative.dev/docs/0.80/integration-with-existing-apps Access date: August 8, 2025. â© â©2
-
Meta Platforms, Inc., & React Native contributors. (n.d.). Out-of-Tree Platforms [Version 0.80]. React Native documentation. https://reactnative.dev/docs/0.80/out-of-tree-platforms Access date: August 8, 2025. â© â©2
-
Petrova, E. (2025, May). Compose Multiplatform 1.8.0 Released: Compose Multiplatform for iOS Is Stable and Production-Ready. The JetBrains Blog. https://blog.jetbrains.com/kotlin/2025/05/compose-multiplatform-1-8-0-released-compose-multiplatform-for-ios-is-stable-and-production-ready/ Access date: August 8, 2025. â© â©2 â©3
-
JetBrains. (n.d.). Desktop-only API. Kotlin Multiplatform documentation. https://kotlinlang.org/docs/multiplatform/compose-desktop-components.html#what-s-next Access date: August 8, 2025. â© â©2 â©3
-
JetBrains. (n.d.). Get started with Kotlin/Wasm and Compose Multiplatform. Kotlin documentation. https://kotlinlang.org/docs/wasm-get-started.html#run-the-application Access date: August 8, 2025. â© â©2
-
Huang, X., & The Lynx Team. (2025, March 5). Lynx: Unlock Native for More. Lynx Blog. https://lynxjs.org/blog/lynx-unlock-native-for-more.html Access date: August 8, 2025. â© â©2
-
Meta Platforms, Inc., & React Native contributors. (n.d.). Fast Refresh [Version 0.80]. React Native documentation. https://reactnative.dev/docs/0.80/fast-refresh Access date: August 8, 2025. â©
-
Meta Platforms, Inc., & React Native contributors. (n.d.). React Native Gradle Plugin [Version 0.80]. React Native documentation. https://reactnative.dev/docs/0.80/react-native-gradle-plugin Access date: August 8, 2025. â©
-
Meta Platforms, Inc., & React Native contributors. (n.d.). Publishing to Google Play Store [Version 0.80]. React Native documentation. https://reactnative.dev/docs/0.80/signed-apk-android Access date: August 8, 2025. â©
-
Volodko, E. (2025, May). Kotlin Multiplatform tooling: Now in IntelliJ IDEA and Android Studio. The JetBrains Blog. How to install the KMP plugin (first paragraph; quoted system restriction at release). â©
-
Sue. (2023, November). Compose Multiplatform 1.5.10 â The Best Time to Get Started. JetBrains Blog. âEasier to get started,â web wizard entry. â© â©2
-
JetBrains. (n.d.). Kotlin Multiplatform quickstart. Kotlin Multiplatform documentation. Project creation steps by IDE, Generated modules and platform entry points. Verified December 1, 2026. â© â©2
-
Microsoft. (n.d.). Publishing a React Native Windows App to the Microsoft Store. React Native Windows documentation. https://microsoft.github.io/react-native-windows/docs/app-publishing/ Access date: August 8, 2025. â©
-
Android Developers. (n.d.). Create an Android library. Android documentation. https://developer.android.com/studio/projects/android-library Access date: August 8, 2025. â©
-
Electron contributors. (n.d.). ASAR Archives. Electron documentation. https://www.electronjs.org/docs/latest/tutorial/asar-archives See âUsing ASAR Archivesâ and âLimitations of the Node API.â Access date: August 8, 2025. â©
-
Android Developers. (n.d.). AssetManager. Android API reference. https://developer.android.com/reference/android/content/res/AssetManager#openFd(java.lang.String) See
openandopenFd. Access date: August 8, 2025. â© -
Coqui AI. (n.d.). TTS. GitHub. Project description. Accessed August 8, 2025. â©
-
Canopy Labs. (n.d.). Orpheus TTS. GitHub. Project overview. Accessed August 8, 2025. â©