Mobile

Migrating from Cordova to React Native: Lessons from 50+ Apps

10 min read By Suraj Kumar Gorai

Having built 35+ apps with Apache Cordova and then 20+ with React Native, I've navigated this migration path multiple times. The transition isn't just about switching frameworks — it's about fundamentally rethinking how your app interacts with the native platform.

Cordova's Strengths and Limitations

Cordova served us well for years. It let web developers build mobile apps with HTML, CSS, and JavaScript running in a WebView. For simple apps — utility tools, content viewers, data entry forms — Cordova was fast to develop and easy to maintain.

But as apps grew more complex, the limitations became painful:

  • Performance ceiling: Animations, transitions, and large lists felt sluggish compared to native apps. No amount of optimization can overcome the WebView rendering bottleneck.
  • Plugin fragmentation: Cordova plugins varied wildly in quality, maintenance, and iOS/Android compatibility. We spent more time fixing plugin issues than building features.
  • Native feature access: Every new native API (biometrics, NFC, ARKit) required finding or building a plugin. React Native gets these through community packages maintained by larger teams.
  • User expectations: Users expect native navigation gestures, native scrolling physics, and platform-specific UI patterns. WebView apps can't deliver these authentically.

The Migration Strategy

Phase 1: Audit and Prioritize

Not all Cordova apps need migration. We scored each app on: user count, performance complaints, planned feature additions, and plugin dependency health. High-traffic apps with performance issues migrated first. Stable utility apps in maintenance mode stayed on Cordova.

Phase 2: Rebuild, Don't Port

The temptation is to port Cordova code to React Native. Don't. The architectures are fundamentally different. Cordova uses DOM manipulation; React Native uses native components. Instead, take this as an opportunity to:

  • Redesign the data flow with proper state management
  • Implement proper navigation with React Navigation
  • Adopt TypeScript for type safety (most Cordova apps were plain JS)
  • Add real unit and integration tests

Phase 3: Native Module Bridge

The biggest technical challenge: replacing Cordova plugins with React Native equivalents. For 90% of cases, well-maintained community packages exist. For the remaining 10%, we wrote native modules — something Cordova made nearly impossible but React Native makes straightforward with its native module system.

Phase 4: Parallel Run and Cut-Over

We ran the Cordova and React Native versions in parallel for 2-4 weeks, with a percentage of users on each. Monitored crash rates, performance metrics, and user feedback before fully cutting over.

What You Keep from Cordova

  • Business logic: Pure JavaScript functions (calculations, validation, data transformation) port directly.
  • API layer: Fetch/axios calls work identically. REST/GraphQL client code moves as-is.
  • Assets: Icons, images, and static content transfer without changes.

What Changes Completely

  • UI layer: HTML/CSS becomes React Native components and StyleSheet. No DOM, no CSS cascade, no media queries (use Dimensions or useWindowDimensions).
  • Navigation: URL-based routing becomes stack/tab navigation with React Navigation.
  • Storage: localStorage becomes AsyncStorage or MMKV.
  • Build system: Cordova CLI becomes Metro bundler + Xcode/Gradle.

Results Across Our Migrations

  • 2-3x faster UI rendering and animation performance
  • 45% fewer platform-specific bugs
  • 60% code sharing between iOS and Android (vs. ~85% in Cordova, but with much higher quality)
  • 4.5+ star ratings on both stores post-migration (up from 3.8 average)

Planning a Cordova to React Native migration? Let's map out your strategy — I've done this enough to know the shortcuts and the pitfalls.