[Mobile Development]

5 Dec 2026

-

8 min read time

Move a React Native App to Swift and Kotlin One Feature at a Time

Learn how to test whether native migration is worth it, keep a React Native app shipping, and replace features without losing rollback.

 Korneliusz Caputa

By Korneliusz Caputa

A green feature screen replaces one section of a phone’s violet app display, while another section stays in place.

Choosing Swift and Kotlin for the next version of a feature does not mean rewriting the entire app. Keep the React Native app shipping while you move bounded features, but settle navigation, shared state and release ownership before replacing the first screen. Otherwise, you risk building two apps that each work in isolation and fail at the handoff.

First decide whether the app needs to leave React Native

Start with the user journey that is actually constrained. Is a map dropping frames, a camera interaction missing its target, or a sheet behaving badly? Profile that journey on representative devices in release builds. React Native’s performance guidance distinguishes JavaScript-thread and UI-thread frame rates; a slow interaction does not, by itself, tell you which layer to replace. Backend latency, data loading or inefficient state updates can survive a move to native.

The Gobi migration account is useful precisely because its team improved bottom sheets and the map before committing to a full migration. Moving camera-driven marker generation out of JavaScript enabled its intended 120 FPS map experience without cutting displayed items. That result is evidence for diagnosing a boundary, not a performance target another app should budget for.

Put four outcomes on the table: improve the current React Native implementation, add a bounded native integration, keep a lasting hybrid, or migrate fully. The right comparison is ongoing engineering cost, not whether native code feels cleaner. How much work is duplicated across platforms? How often does a feature have to cross the JavaScript/native boundary? Who maintains the build and release paths? Software Mansion describes all three architectural directions—React Native, bounded native integrations and fully native—as viable. Its reason for taking Gobi further was that coordinating more native-heavy features through React Native was becoming costlier than the shared implementation saved.

Do not use another company’s switch as your decision gate. Our discussion of Shopify’s return to native makes the same practical distinction: their constraints are not your constraints. If a measured improvement inside React Native meets the product requirement, stop there. If only one subsystem needs direct platform control, a permanent hybrid may be cheaper than maintaining two complete implementations.

Set the ownership contracts before moving a screen

A staged migration fails at seams more often than at screens. Inventory routes and back behavior; authentication and sign-out; API clients and cached data; permissions; analytics; notifications; deep links; background work; and update delivery. For each responsibility, name one owner at each migration stage. “Both sides can update it” is not an ownership model.

Write a platform-neutral contract for a representative journey. Specify its entry route, what happens when the user presses Back, which sheet or modal closes first, what data remains when a destination regains focus, and what gets restored after the app is interrupted. Include stale data, failed requests and sign-out while the journey is open. The contract should describe behavior that both iOS and Android must reproduce, not dictate the same internal architecture.

Gobi did this for each map context before moving navigation: camera, markers, controls, sheet stack and the state to restore when a sheet closed. That gave both native implementations an observable target. It also exposed a common migration mistake: replacing the visible map while leaving its navigation and restoration rules implicit.

Authentication and shared data deserve particular care. Decide whether native owns the session and exposes it to remaining React Native features, or whether an interim adapter bridges the existing owner. Avoid two writable caches or two competing sign-out paths. Gobi moved authentication and shared data into native code while keeping temporary connections to features it had not replaced. Those adapters were migration work, not evidence that the underlying ownership question could be skipped.

Build a native host that can still ship the existing app

The first architectural milestone is not a rewritten feature. It is an iOS and Android build in which the existing product still works under a native host. In Gobi’s sequence, the host initially treated the whole React app as one destination. Later, native navigation hosted remaining features as separate React Native root views. AppRegistry.registerComponent is the documented registration point for a root that native code can run; Gobi used registered roots to create those feature-level “React islands.”

An island is not a separate miniature app. Gobi’s islands had separate component trees but shared one JavaScript runtime. That can preserve existing features while native navigation takes over, but it also means the runtime, dependencies and handoff contracts remain production concerns until their last consumer is gone. Treat island hosting as a boundary you must operate, not as a free bridge between two stacks.

Separate React Native features still depend on one shared JavaScript runtime.

Prove the boundary with one destination before designing a fleet of islands. Test entry from native navigation, return to the correct destination, session availability, data refresh and restoration after interruption on both platforms. Keep the original route reachable in a development or release configuration so failures have a workable fallback.

Do not copy another project’s host setup verbatim. Integration details depend on the installed React Native and Expo versions, libraries and existing native projects. For a team using Expo Prebuild, manual changes to generated iOS and Android directories can be lost on a clean prebuild. Decide whether generated-project changes belong in config plugins or whether you will manage native projects directly before significant host work accumulates. This is one place where the boundary between shared JavaScript and platform code changes both development and release practices; our cross-platform mobile and web guide covers the broader trade-off.

Replace one bounded feature and prove parity

Pick a feature small enough to finish but substantial enough to test the architecture. A static information screen proves little. A flow with navigation, authenticated data, an error state and a platform interaction will tell you whether the host and ownership contracts hold. Record its current behavior before coding either replacement.

Build the Swift and Kotlin versions against the same acceptance contract. Exercise entry from each relevant route, back navigation, sign-out, stale or missing data, network failure and app restoration. Then test on devices: keyboard behavior, scrolling, permissions, offline behavior, deep links and accessibility interactions. Screenshots can detect appearance drift; they cannot establish that a reply reconnects, a sheet restores state or Back returns to the expected place.

Gobi’s AI-chat work offers a useful testing pattern. The team documented backend exchanges and expected behavior, then tested iOS and Android against recorded event sequences, including interrupted replies, reconnections and restored conversations. Developers reviewed agent-produced work. The important lesson is the shared behavioral evidence, not that an agent or a test recording can replace design decisions and device-level verification.

Keep the React Native implementation available until both native versions pass. Maintain a ledger for each island: owner, dependencies, native replacement status, parity evidence, release flag and rollback procedure. A feature is not migrated because its new screen renders; it is migrated when its old path can be removed without breaking a route, service or release.

Treat every intermediate release as a mixed-app release

A staged migration is only safe if you can ship it. For every build, record which old and new implementations are bundled and which users can reach each one. A feature flag can switch between implementations already present in that binary. It cannot deliver newly written Swift or Kotlin to an installed app. Expo’s runtime-version guidance likewise separates updateable JavaScript and assets from native code that requires a compatible new build.

That distinction changes rollback. If a native feature fails, a flag can return users to its bundled React Native path only if the old path and its dependencies are still present and working. If the fix needs new native code, plan an iOS and Android build and store release. Specify what telemetry triggers a flag reversal, who makes that decision and how you verify each platform after the switch. Do not assume a rollback tested on Android proves the iOS path.

Rollback to the old feature works only when its working implementation remains in the shipped app.

Gobi removed its JavaScript over-the-air update path during the transition. That was an operational choice with consequences: flags could select bundled implementations, but new client code required a build. Its reported transition from introducing a native host to removing the React Native runtime took around eleven weeks while product work continued. That is one team’s account, not a schedule or cost estimate for yours.

Decide whether to stop—or remove the runtime

Use the ledger and release results to make a fresh decision after each bounded migration:

  • Stop at React Native if release-build profiling shows the targeted changes meet the user requirement.

  • Keep the hybrid if native-heavy features benefit from platform code but replacing the remaining islands costs more than operating the runtime and its contracts.

  • Continue migrating if repeated cross-layer coordination, duplicate ownership or release complexity now costs more than two native implementations and their device-level verification.

  • Remove the runtime only when no island or runtime-dependent service remains, native ownership of shared concerns is verified, and both platforms have passed a release rehearsal.

The final step is dependency removal, not a ceremonial deletion of the last screen. Gobi’s cleanup included React Native and Expo runtime dependencies, Hermes, Metro, entry points and hosting adapters. Check your own build and delivery paths for equivalent dependencies before claiming the migration is complete. If you need help assessing those boundaries or delivering a staged change, our mobile app development team works across existing React Native apps and native iOS and Android implementations.

 Korneliusz Caputa

By Korneliusz Caputa

More from our Blog

Keep reading