Migration

Remove React Native

Check routing, services and the upgrade path before replacing the React Native shell with the Kotlin app.

On this page

Decide when to retire the shell#

React Native is the shell around your migrated screens: the router, the root component and the native projects it generates. You can retire it when:

  • every route renders a Compose screen, and no flag still points to a React Native one;
  • the remaining TypeScript only wires routes, and a Kotlin navigation library can take it over;
  • deep links, push handling and the app lifecycle are covered by the Kotlin app.

At that point the Kotlin Multiplatform app already exists as a project of its own, because that is where your screens lived all along. Before you remove the React Native app and ship the Kotlin Multiplatform app, plan what the switch does to installed apps:

  • The update path. The new app replaces the old one under the same bundle identifier and signing key, so it must keep the data and the sign-in session the old one stored (secure storage, databases, preferences), or migrate them on first launch.
  • Local data and the session. React Native storage libraries do not share a format with their Kotlin equivalents. Read the old storage once, move it, and test an update from the oldest version you still support.
  • Services still on the React Native side. Push registration, analytics, crash reporting and any JavaScript-only SDK need a Kotlin replacement before the shell goes.

Test the update from a real previous release, not only a fresh install.

Check the cutover#

Install the previous production binary, sign in and create representative local state. Upgrade to the Kotlin binary using the same app identity. Check that the session and retained data survive, that deep links and notifications enter the intended routes, and that back behavior matches on both platforms. Check a fresh installation separately.

Review storage and session migration and navigation ownership before the cutover.