Choosing a Cross-Platform Mobile Framework: Code Reuse, Native Capabilities and Platform Coverage

July 30, 2025

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:

LayerTypical contentsWhat to verify
Data and business logicData structures, filtering, sorting, network requestsCan the code be reused? Do its dependencies support the target?
UI and interactionLists, forms, animations, navigationAre components shared? Does appearance or behavior need platform-specific adaptation?
Platform capabilities and deliveryPhoto library, files, sound, installation and updatesIs 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

OptionLanguage and UI approachMain advantageCostsExpansion beyond mobile
FlutterDart with its own widget and rendering systemConsistent UI for a jointly maintained visual designLearn 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 NativeJavaScript/TypeScript and React with native componentsRetains React development patterns and can be embedded incrementally in native applicationsNative dependencies, upgrades, architecture compatibility and platform styling differencesWindows and macOS use separate platform projects. Mobile dependency availability alone is insufficient.6784
Kotlin Multiplatform + Compose MultiplatformKotlin with optional shared logic alone or shared Compose UIReuse Kotlin knowledge and choose what to shareLibrary compatibility across compilation targets and division of platform API workDesktop and web routes. Compose for iOS became stable in May 2025. Evaluate each target individually.391011
KuiklyKotlin/KMP with a DSL and thin native layerPuts much UI logic in shared Kotlin, alongside native integration and dynamic deliveryIts own component system, with different constraints in Native and JS modesThe sources emphasized mobile, HarmonyOS and mini programs, without listing PC support at the time.1
LynxWeb-style development, ReactLynx, native UI engine and dual-thread modelBuilds on frontend skills and emphasizes first-frame and interaction responsivenessLearn a new runtime model and verify components, plugins and toolchainEarly 2025 open-source materials focused on mobile and web. Distinguish desktop plans from available implementations.112
uni-app xVue-style interface and UTS, compiling to platform languages with native UIAttractive for Vue/uni-app teams, with access to platform APIsUTS differences from full JS/TS, platform conditionals and plugin migrationThe 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

  1. 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.kts and wait for Gradle sync. The generated plugin versions and dependencies are designed to work together.
  2. Find src/commonMain/kotlin. commonMain contains source compiled for all targets. Locate the template’s @Composable UI function and change its displayed text to â€œäœ ć„œïŒŒć€šćčłć°â€ (“Hello, multiplatform”). The Android entry point’s setContent { 
 } calls the shared UI, and the desktop window can call the same function.
  3. Select the generated Android app run configuration and a running emulator. Click Run to see the change. From the root run ./gradlew tasks --all and find the desktop run task. If the list contains desktopApp:run, execute ./gradlew :desktopApp:run and 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:

CheckFeatures to verify
UI and interactionLong lists, text scaling, input methods, accessibility and layouts on different screens
Native capabilitiesImage selection, file I/O, audio playback or a required third-party SDK
Development feedbackWhether a UI edit preserves state and whether errors lead back to your code
Dependencies and upgradesWhich platforms, runtime modes and framework versions core libraries support
DeliveryBuild 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?”

FormatRole in building and running
ASARElectron 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.
AARAndroid 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

  1. 恋猫. (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

  2. 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

  3. 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

  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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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. ↩

  14. 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. ↩

  15. 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. ↩

  16. 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). ↩

  17. Sue. (2023, November). Compose Multiplatform 1.5.10 – The Best Time to Get Started. JetBrains Blog. “Easier to get started,” web wizard entry. ↩ ↩2

  18. 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

  19. 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. ↩

  20. Android Developers. (n.d.). Create an Android library. Android documentation. https://developer.android.com/studio/projects/android-library Access date: August 8, 2025. ↩

  21. 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. ↩

  22. Android Developers. (n.d.). AssetManager. Android API reference. https://developer.android.com/reference/android/content/res/AssetManager#openFd(java.lang.String) See open and openFd. Access date: August 8, 2025. ↩

  23. Coqui AI. (n.d.). TTS. GitHub. Project description. Accessed August 8, 2025. ↩

  24. Canopy Labs. (n.d.). Orpheus TTS. GitHub. Project overview. Accessed August 8, 2025. ↩

© 2025 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2025-07-30). Choosing a Cross-Platform Mobile Framework: Code Reuse, Native Capabilities and Platform Coverage. https://caiborui.com/blog/2025-07-30-zh-mobile-cross-platform-selection-entrans

@misc{borui2025-a5679ae9,
  author = {borui},
  title = {{Choosing a Cross-Platform Mobile Framework: Code Reuse, Native Capabilities and Platform Coverage}},
  year = {2025},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2025-07-30-zh-mobile-cross-platform-selection-entrans}
}