Native vs cross-platform: how to choose
Why it matters
- Interviewers ask 'why did you pick this stack' and expect a trade-off argument, not 'it was trendy.' A senior answer names at least two criteria and one trade-off you accepted.
- Most real projects are brownfield: adding a Kotlin Multiplatform module to an existing Android app, embedding a
FlutterFragment, or hosting React Native screens in aReactActivity. The migration path matters as much as the final architecture. - Team composition and hiring pool decide whether a choice is sustainable in two years. A stack you cannot staff becomes a liability.
- Rendering and API access differ fundamentally: Jetpack Compose renders through the Android UI toolkit, Flutter draws every pixel with its own engine (Impeller), and React Native renders real native views through Fabric and JSI. These differences change frame-time behaviour, app size and how deep you can reach into platform APIs.
The simple explanation
Short answer: choose native Android (Kotlin + Jetpack Compose) for an Android-only app or one that needs deep platform APIs; choose Kotlin Multiplatform when you want to share business logic with iOS while keeping native UIs; choose Flutter when you want one UI codebase that looks the same everywhere; choose React Native when your team already works in JavaScript or TypeScript. There is no universal winner; the decision rests on team skills, code sharing, platform API access, performance, app size, hiring, maturity and migration path.
- Native Android is building a house from local materials: full control, you know every pipe and wire.
- KMP is a shared structural blueprint: the skeleton is the same, but each local crew finishes the interior.
- Flutter is a prefab house: identical look on every plot, but you adapt to its design and add local plumbing via platform channels.
- React Native is a modular kit: rooms are real native rooms, but the wiring (JSI, Turbo Modules) follows its own rules.
- The right pick depends on the plot, the budget, and who is on the crew.
The question is not 'which is best' but 'which fits this team, product, and timeline.' Four realistic paths exist for an Android developer:
- Native Android: Kotlin + Jetpack Compose. Direct access to every Android API (
CameraX/Camera2,WorkManager, the NDK). No bridge, no extra runtime. - Kotlin Multiplatform (KMP): Share
commonMainlogic (networking, data, domain, state) across Android and iOS. UI stays native (Jetpack Compose on Android, SwiftUI on iOS) or is shared with Compose Multiplatform.iosMaincode can call Apple frameworks directly. - Flutter: Dart code, drawn by Flutter's own engine. Impeller is the default renderer on Android devices with API 29+ and Vulkan; other devices fall back to a legacy OpenGL renderer. Add-to-app embeds a
FlutterActivity,FlutterFragmentorFlutterViewin an existing Android app. - React Native: TypeScript/JavaScript. The New Architecture (
JSI,Fabric, Turbo Modules) replaces the old asynchronous bridge and is the default in current releases. Components render as native AndroidViews. In an existing app you host it in aReactActivityorReactFragmentbacked by aReactHost.
| Factor | Native Android | KMP | Flutter | React Native |
|---|---|---|---|---|
| Platform API access | Direct | Direct from androidMain and iosMain | Platform channels, Pigeon or FFI | Native modules (Turbo Modules) |
| Shared code | None | Logic; UI optional (Compose Multiplatform) | UI + logic | UI + logic |
| Extra runtime | None | None on Android; Kotlin/Native runtime in the iOS framework | Flutter engine + Dart AOT code | JS engine (Hermes by default) |
| Brownfield entry point | N/A | Shared Gradle module | FlutterActivity / FlutterFragment | ReactActivity / ReactFragment |
| Hiring pool | Android developers | Kotlin developers (mostly Android) | Dart/Flutter developers | JS/TS developers (web overlap) |
There is no universal winner. A single-platform app with deep camera, sensor or NDK needs stays native. A two-platform product with a strong web team may pick React Native. A team wanting one UI codebase and full control over every pixel picks Flutter. KMP suits teams that already know Kotlin and want to share logic without giving up native UIs.
Notes
- Native Android gives direct access to the Android SDK (
CameraX,WorkManager, the NDK, customViews) with no bridge. Jetpack Compose is Android's recommended modern UI toolkit. - Kotlin Multiplatform shares
commonMainlogic; UI can stay native (Compose + SwiftUI) or use Compose Multiplatform. Interfaces plus DI, orexpect/actualfor small primitives, isolate platform-specific code. - Flutter: Impeller is the default renderer on Android API 29+ devices that support Vulkan; older or non-Vulkan devices fall back to a legacy OpenGL renderer. On iOS, Impeller is the only renderer. Impeller precompiles its shaders, which removes the runtime shader-compilation jank Flutter had with Skia.
- React Native's New Architecture uses
JSIso JavaScript can call C++ directly,Fabricas the new renderer (supports React's concurrent features and synchronous layout), and Turbo Modules for lazily loaded, type-safe native modules. It replaces the old asynchronous JSON bridge. Hermes is the default JavaScript engine. - Brownfield KMP: add a shared Gradle module, move one feature's data layer at a time, keep the Android UI native. Audit Android-only dependencies before starting.
- Flutter add-to-app: pre-warm a
FlutterEnginein yourApplication, store it inFlutterEngineCache, and open screens withFlutterActivity.withCachedEngine(...)orFlutterFragment.withCachedEngine(...). A cached engine starts faster and keeps Dart state when the hostActivityis recreated. - React Native in an existing app: your
ApplicationimplementsReactApplicationand provides aReactHost; screens live in aReactActivity(orReactFragment) that names the registered JS component. - Hiring: look at your local market. Native Android developers are the obvious pool for KMP; React Native overlaps with web developers; Flutter needs Dart experience. Factor this into a two-year plan.
- App size: Flutter ships its engine and compiled Dart code; React Native ships a JavaScript engine and bundle; KMP adds little on Android, and the iOS framework includes the Kotlin/Native runtime. Measure a release build of your own app rather than trusting published numbers.
- There is no universal winner. Score against your own team, product scope, and migration constraints. A prototype on the target device beats a benchmark table.
Code example
This JSON checklist is the decision matrix a team fills in before committing to a stack. Weights and scores are placeholders; replace them with your own team's numbers.
{
"question": "Which approach for this app?",
"criteria": [
{ "name": "Team skills", "weight": 0.20, "note": "Can the team ship in 2 sprints?" },
{ "name": "Code sharing", "weight": 0.15, "note": "What fraction of logic runs on 2+ platforms?" },
{ "name": "Platform API access", "weight": 0.15, "note": "CameraX, NDK, custom Views, deep SDK calls?" },
{ "name": "Performance", "weight": 0.15, "note": "60/120 fps, large lists, on-device ML?" },
{ "name": "App size", "weight": 0.05, "note": "Download size a hard constraint?" },
{ "name": "Hiring pool", "weight": 0.10, "note": "Hire 3+ engineers in 6 months?" },
{ "name": "Maturity", "weight": 0.10, "note": "Stable libraries for your use case?" },
{ "name": "Migration path", "weight": 0.10, "note": "Adopt incrementally without a rewrite?" }
],
"options": [
{ "name": "Native Android (Kotlin + Compose)", "bestWhen": "Single platform, deep API access, native team" },
{ "name": "Kotlin Multiplatform", "bestWhen": "Share logic across Android/iOS, keep native UIs" },
{ "name": "Flutter (Dart, Impeller)", "bestWhen": "One custom UI on every platform, team comfortable with Dart" },
{ "name": "React Native (TS, New Arch)", "bestWhen": "Web/TypeScript team exists, native views via Fabric and JSI" }
],
"brownfield": {
"KMP": "Add a shared KMP module, migrate one feature at a time, keep Android UI native",
"Flutter": "Embed FlutterActivity or FlutterFragment with a cached FlutterEngine",
"ReactNative": "Provide a ReactHost in Application, host screens in ReactActivity or ReactFragment"
}
}- Weights sum to 1.0 so the final score is a weighted average on a 1-5 scale; adjust weights to reflect your project's priorities.
- The
brownfieldblock lists the concrete integration entry point for each cross-platform option in an existing Android app. - Replace the
notestrings with your team's real constraints before using this in a design review.
Run the idea in plain Kotlin
data class Criterion(val name: String, val weight: Double)
data class Option(val name: String, val scores: Map<String, Double>)
fun main() {
val criteria = listOf(
Criterion("Team skills", 0.20),
Criterion("Code sharing", 0.15),
Criterion("API access", 0.15),
Criterion("Performance", 0.15),
Criterion("App size", 0.05),
Criterion("Hiring pool", 0.10),
Criterion("Maturity", 0.10),
Criterion("Migration path", 0.10)
)
val options = listOf(
Option("Native Android", mapOf(
"Team skills" to 5.0, "Code sharing" to 1.0, "API access" to 5.0,
"Performance" to 5.0, "App size" to 4.0, "Hiring pool" to 4.0,
"Maturity" to 5.0, "Migration path" to 5.0
)),
Option("KMP", mapOf(
"Team skills" to 4.0, "Code sharing" to 4.0, "API access" to 4.0,
"Performance" to 4.5, "App size" to 4.0, "Hiring pool" to 3.0,
"Maturity" to 3.5, "Migration path" to 4.0
)),
Option("Flutter", mapOf(
"Team skills" to 3.0, "Code sharing" to 5.0, "API access" to 3.0,
"Performance" to 4.0, "App size" to 3.0, "Hiring pool" to 3.0,
"Maturity" to 4.0, "Migration path" to 3.0
)),
Option("React Native", mapOf(
"Team skills" to 3.5, "Code sharing" to 4.5, "API access" to 3.5,
"Performance" to 3.5, "App size" to 3.5, "Hiring pool" to 4.0,
"Maturity" to 4.0, "Migration path" to 3.5
))
)
println("Weighted Decision Matrix (scores 1-5, weights sum to 1.0)")
println("----------------------------------------------------------")
for (opt in options) {
var total = 0.0
for (c in criteria) {
val score = opt.scores[c.name] ?: 0.0
total += score * c.weight
}
val rounded = (total * 100.0).toInt() / 100.0
println(opt.name + " : " + rounded)
}
}Expected output:
Weighted Decision Matrix (scores 1-5, weights sum to 1.0)
----------------------------------------------------------
Native Android : 4.25
KMP : 3.92
Flutter : 3.55
React Native : 3.74
- The scores are made up to show the arithmetic; with a different team or product the ranking changes. Change one weight and rerun to see how sensitive the result is.
In production
- An existing Android app embedded a new Flutter onboarding flow with
FlutterFragment.createDefault(). - Users who rotated the device mid-flow were sent back to the first step, and each time the screen opened there was a visible blank pause before the first Flutter frame.
- The cause: without a cached engine, the fragment created its own
FlutterEngine. When the hostActivitywas recreated on rotation, the fragment and its engine were destroyed and a new engine started Dart from scratch, losing all state.
- The team pre-warmed one
FlutterEngineinApplication.onCreate(), started its Dart entry point, and stored it inFlutterEngineCache. - The fragment was created with
FlutterFragment.withCachedEngine("onboarding").build(), so the engine and its Dart state outliveActivityrecreation and the first frame appears faster. - They added an instrumented test that rotates the device mid-flow and asserts the current step is kept.
- A team started migrating a native Android app to KMP, moving networking and state into
commonMain. - They hit a wall: an analytics SDK with an Android-only Kotlin API was called from dozens of places in the code they wanted to share.
- The actually shareable code was far less than expected, making the KMP build overhead hard to justify for the first release.
- The team defined an
Analyticsinterface incommonMain. The Android implementation inandroidMainwraps the existing SDK; the iOS implementation wraps the vendor's iOS SDK and is passed in from the Swift side. Both are injected with Koin. - They re-scoped the first milestone to the networking and data layer only, keeping everything else native.
- Shared code grew feature by feature once every call site went through the interface.
Common mistakes
- Picking a framework because it is trendy. The team inherits a stack it cannot hire for or maintain in two years. Always score against your own team skills, product scope, and hiring pool before choosing.
- Assuming KMP means sharing UI. KMP's primary value is shared logic in
commonMain; UI can stay native. Treating Compose Multiplatform as a free extra, instead of a separate decision with its own iOS testing cost, leads to scope creep. - Ignoring brownfield migration cost. Adding Flutter or React Native to an existing app means two UI stacks, an extra engine to start and keep alive, and coordinating lifecycles and navigation between them. Budget for integration work, not just the new module.
- Choosing Flutter for an Android-only app without a reason. You ship the Flutter engine and a second language for no cross-platform benefit. Unless you plan to add iOS or web soon, Jetpack Compose is simpler and has no extra runtime.
- Starting a new React Native project on the legacy architecture. The New Architecture is the default in current React Native releases and the legacy bridge is being phased out. Starting on the old bridge means immediate migration debt; check that the libraries you need support the New Architecture.
- Deciding without profiling on the target device. Frame-time and memory differences between Flutter, React Native and native Compose depend on the device and the workload. A short prototype measured on your lowest supported hardware prevents surprises in production.
Interview questions
Answer out loud first. Then reveal the answer and compare it at each depth.
“Why did you choose this framework for the project?”
“How would you migrate an existing native Android app to KMP?”
“What are the performance trade-offs of Flutter versus native Compose on Android?”
“How does React Native's New Architecture change the integration story?”
Quiz
What does React Native's New Architecture use so JavaScript can call native code directly?
In an existing Android app, how do you add a Flutter screen?
What is the main advantage of KMP over Flutter for an Android team?
Which renderer does Flutter use by default on a modern Android device (API 29+ with Vulkan)?
0 of 4 answered
Mini task
Build a weighted decision matrix for a hypothetical app (15 min)
- Open a text editor or a spreadsheet. Create a table with 8 rows (criteria) and 4 columns (Native Android, KMP, Flutter, React Native).
- List the criteria: Team skills, Code sharing, Platform API access, Performance, App size, Hiring pool, Maturity, Migration path. Assign a weight to each so the weights sum to 1.0.
- Score each option on each criterion from 1 (poor) to 5 (excellent). Write a one-line reason for every score below 3.
- Multiply each score by its weight and sum the column. Rank the four options by total.
- Pick a concrete scenario: "a two-platform e-commerce app with a web team and a 6-month deadline." Write 3 sentences justifying the top-scoring option. Name at least two trade-offs you accepted.
Done: You have a filled matrix, a ranked list, and a 3-sentence justification that names at least two trade-offs. If the top option changes when you shift one weight by 0.05, note that sensitivity in your justification.