React Native Alternatives: What to Share Across Platforms?
In this article
When you choose a React Native alternative, the key question is what code you want to share across platforms—UI, business logic, or both. This article compares the main options (Flutter, Kotlin Multiplatform, .NET MAUI, and others) based on their sharing strategy, so you can pick the one that matches your team's skills and app requirements.
Background: Why React Native Exists and What It Shares
React Native (RN) lets you build iOS and Android apps with JavaScript and React. The core idea is shared UI components: you write a <View> once, and it renders as a native UIView on iOS and a native View on Android. Business logic (state, API calls) is also shared, but you often need platform-specific code for things like native modules or complex gestures.
RN's sharing model is “write once, run anywhere” with a JavaScript bridge. That bridge has been a source of performance bottlenecks, which led to the New Architecture (Fabric and TurboModules) that reduces the overhead. But the fundamental approach—JavaScript driving native views—remains.
Alternatives differ in what they share:
- UI + logic: Flutter, .NET MAUI, and Uno Platform share both the visual layer and the logic.
- Logic only: Kotlin Multiplatform (KMP) shares business logic, but you write the UI separately for each platform.
- Web-first: Ionic and Capacitor share a web app wrapped in a native shell, so you share HTML/CSS/JS but not truly native UI.
How Sharing Works in Each Major Alternative
Each framework has a distinct mechanism for sharing code across platforms:
- Flutter: Uses the Dart language and its own rendering engine (Skia/Impeller). It paints every pixel itself, so it doesn't rely on native widgets. You share ~100% of your codebase, including UI, logic, and even animations. The only platform-specific code is for things like permissions or integrating native SDKs.
- Kotlin Multiplatform: Shares business logic written in Kotlin. You can share data models, networking, and validation, but you build the UI natively (SwiftUI for iOS, Jetpack Compose for Android). This means you get native look-and-feel but duplicate UI code.
- .NET MAUI: Evolved from Xamarin.Forms. It uses C# and XAML to define UI that maps to native controls on iOS, Android, Windows, and macOS. You share UI and logic, but you can still access native APIs via dependency services or platform-specific code.
- Uno Platform: Similar to MAUI but with a focus on WebAssembly. You write XAML and C# that runs on Windows, iOS, Android, and the web. It's a good choice if you need a desktop app alongside mobile.
- Ionic + Capacitor: You build a web app with any JS framework (Angular, React, Vue), then wrap it in a native WebView. You share everything except native plugins, but the UI is not truly native—it's a web page.
Choosing Based on Your Team and App Type
Your choice should hinge on three factors: your team's language skills, the app's performance needs, and how much you value native look-and-feel.
- If your team knows JavaScript/React: React Native is the obvious choice, but if you're leaving it, consider Expo (which is RN with better tooling) or Ionic if you're comfortable with web tech. Flutter requires learning Dart, which is easy for JS devs but still a new language.
- If you need maximum performance: Flutter often wins because it doesn't rely on a JavaScript bridge. However, for very complex animations, native code may still be better. Kotlin Multiplatform also performs well because the shared code is compiled to native binaries.
- If you want a truly native UI: Kotlin Multiplatform or .NET MAUI give you native controls. Flutter's UI is custom-drawn, so it looks consistent but not “native” on either platform.
- If you need a web version too: Flutter supports web, but with limitations. Uno Platform and .NET MAUI can target web, but the best web support is with Ionic or plain React/Vue.
Common Problems and Misconceptions
One common misconception is that “shared code” means you never write platform-specific code. In reality, every framework requires some platform-specific work:
- Flutter: You'll need to write platform channels to access native APIs like camera or biometrics.
- Kotlin Multiplatform: You'll write the entire UI twice, which can double your UI development time.
- .NET MAUI: Some controls behave differently on each platform, so you may need to tweak styles or use platform-specific handlers.
- Ionic: You'll rely on plugins that may not have full feature parity across platforms.
Another issue is dependency management. With RN, you often need to link native modules. With Flutter, you use pub packages that may have native code. KMP requires you to manage expect/actual declarations. These can be tricky but are well-documented.
Performance and App Size Trade-offs
Performance is a key differentiator:
- Flutter: Renders at 60fps on most devices. The app size is larger because it includes the Skia engine (about 4-5 MB per platform).
- Kotlin Multiplatform: Very fast because shared code is compiled to native. App size is close to native, but you have two UI codebases.
- .NET MAUI: Good performance, but the app size is larger due to the .NET runtime. It's not as heavy as Xamarin was, but still noticeable.
- Ionic: The WebView adds overhead, so performance is lower for complex UI, but it's fine for simple apps.
If you're building a data-heavy app, KMP's native compilation is a strong advantage. If you're building a rich UI with custom animations, Flutter's rendering engine is hard to beat.
Cost and Development Speed
Cost isn't just about licenses—it's about team productivity and time-to-market.
- Flutter: Free and open-source. You need to hire Dart developers, but the learning curve is moderate. You can ship to both platforms with one codebase, which cuts development time significantly.
- Kotlin Multiplatform: Free, but you need both Kotlin and Swift/Objective-C developers. That means two UI teams, which can increase costs.
- .NET MAUI: Free with Visual Studio Community. If your team knows C#, it's efficient. But the ecosystem is smaller than Flutter's.
- Ionic: Free, but you're essentially building a web app, so you need web developers. The cost is low, but you may sacrifice performance and native feel.
Also consider the ecosystem and community. Flutter has a huge package library, while KMP's is growing but still smaller. .NET MAUI benefits from the .NET ecosystem, but mobile-specific libraries are fewer.
Safety and Long-Term Viability
When choosing a framework, consider its backing and future direction:
- Flutter: Backed by Google, with a strong roadmap. It's used by many companies, including Google Pay and Alibaba.
- Kotlin Multiplatform: Backed by JetBrains and Google (for Android). It's becoming the standard for sharing logic between Android and iOS.
- .NET MAUI: Backed by Microsoft, and is the successor to Xamarin. It's a safe bet if you're a Microsoft shop.
- Ionic: Backed by the Ionic company, but the web-based approach is less future-proof if native performance becomes more critical.
There's also the risk of vendor lock-in. Flutter locks you into Dart, which is fine if you like it, but it's not as widely used as JavaScript or Kotlin. KMP lets you share logic but keeps your UI native, so you're not locked into a UI framework.
Frequently Asked Questions
Can I use React Native components with Flutter?
No, they are completely different frameworks. Flutter uses Dart and its own widget system, while React Native uses JavaScript and React. You cannot mix them directly, but you can embed a Flutter module in an existing React Native app using platform channels, though it's complex and not recommended for new projects.
Which alternative has the best performance?
Flutter generally offers the best performance for UI-heavy apps because it renders everything itself, avoiding the JavaScript bridge. Kotlin Multiplatform also performs well for logic because it compiles to native code. For pure business logic, KMP is often faster than Flutter's Dart, but for UI, Flutter is hard to beat.
Do I need to write separate UI code for Kotlin Multiplatform?
Yes, with KMP you write the UI separately for each platform—SwiftUI for iOS and Jetpack Compose for Android. That's the trade-off for getting native look-and-feel and performance. You share only the business logic, which is the main selling point of KMP.
Is Flutter good for building a web app too?
Flutter can compile to web, but it's not its primary target. The web version uses CanvasKit, which may have accessibility and SEO issues. If you need a serious web presence, consider using a web framework like React or Vue, or use Flutter for mobile and a separate web app.
What happens to my React Native app if I switch?
You'll need to rewrite the app in the new framework. There's no automatic migration tool. However, you can keep your business logic if you use Kotlin Multiplatform, since you can rewrite the UI natively and reuse the logic. For Flutter, you'll rewrite everything, but the process is straightforward if your app is not too complex.
Which alternative is easiest for a JavaScript developer to learn?
If you know JavaScript, Ionic is the easiest because you use the same language and web technologies. Flutter requires learning Dart, which is similar to JavaScript but has different syntax and concepts. Kotlin Multiplatform requires learning Kotlin, which is a modern JVM language, and also Swift for iOS UI, so it's the steepest learning curve.