“Write once, run anywhere.” The cross-platform promise has been around for decades, and it is still the dream of every developer who wants to scale without doubling the team. One codebase, every screen: iOS, Android and the web.

In my career I have never achieved it without unacceptable compromises. Porting a web app to mobile sacrifices native feel and performance. Going the other way, exporting a mobile app to the web with React Native or Flutter, hides a quieter architectural trap: the death of SEO and the loss of everything that makes the web fast.

What do you lose on the web?

When a mobile-first codebase is shipped to the browser as-is, three things usually disappear at once:

  • Server-side rendering (SSR). The server sends no real content, so the browser has to download and run JavaScript before anything appears.
  • Edge caching. If every page is the same empty shell filled in on the client, a CDN can cache the shell but not the content people and crawlers actually came for.
  • Open Graph and meta tags. Titles, descriptions and preview images are set at runtime, if at all, so link previews come out blank.

For an internal tool, a dashboard behind a login or a companion web app, this may be perfectly acceptable. For a public product, an e-commerce store, a SaaS marketing site or a content platform, organic search and shareable links are often the main acquisition channel, and losing them is a serious cost.

Why do Flutter and React Native fail at SEO out of the box?

Flutter: the painter without text

Flutter on the web does not generate an HTML document of your UI. Its renderers (CanvasKit and the newer WebAssembly-based one) paint the whole interface into a <canvas> element, pixel by pixel, exactly as Flutter draws on a phone.

That is great for visual consistency, but from the point of view of a crawler the page has no text, no <h1>, no <a href> links: just an interactive picture. Flutter can build a hidden semantics tree for assistive technologies, but it is not real semantic HTML and it is no substitute for a document a search engine can read. SEO and much of the platform’s built-in accessibility are gone.

React Native: the blank page trap

React Native fares better, at least on paper. react-native-web translates components like <View> and <Text> into real DOM elements, so the final page does contain HTML. The problem is how it gets there: the default web export is a classic single-page app, and the server returns something like this:

<body>
  <div id="root"></div>
  <script src="/bundle.js"></script>
</body>

Everything else is rendered on the client by JavaScript. The consequences:

  • Slow initial load. Users stare at a blank screen until the bundle is downloaded, parsed and executed, which hurts Largest Contentful Paint (LCP) and your Core Web Vitals.
  • Harder indexing. Googlebot can render JavaScript, but it does so later, in a second pass with limited resources. Many other crawlers do not run JavaScript at all.
  • No link previews. WhatsApp, LinkedIn, Slack and X read Open Graph tags from the raw HTML without running scripts. If those tags are injected client-side, every shared link shows up empty.

How do you fix it in 2026?

The answer is not to give up on code sharing, but to share the right things. There are two main paths.

1. The monorepo: separate interfaces, shared logic

Use Next.js for the web, with proper SSR, static generation, edge caching and metadata, and Expo for iOS and Android. Both apps live in the same repository and depend on shared packages:

apps/
  web/        # Next.js: SSR, SEO, Open Graph
  mobile/     # Expo: iOS and Android
packages/
  core/       # business logic, API clients, validation, state
  ui/         # optional shared components

packages/core can share essentially 100% of the business logic: API calls, data models, validation, state management and domain rules. Only the presentation layer is split, and that is exactly the part where each platform has different expectations anyway.

If you also want to share UI, react-strict-dom lets you write components with standard web elements such as html.div and html.h1, which render as real HTML on the web and as native components on iOS and Android. I covered this approach in more depth in sharing code between React and React Native.

2. Expo Router with static and server rendering

If a single UI codebase is a hard requirement, Expo has brought web rendering strategies directly into the React Native ecosystem. With Expo Router you can switch the web output from a client-only SPA to pre-rendered pages:

{
  "expo": {
    "web": {
      "output": "static"
    }
  }
}

With static output (SSG), every route is rendered to HTML at build time, and the <Head> component lets you set titles, descriptions and Open Graph tags per page. Server output adds API routes and server rendering for content that changes per request. Crawlers and link previews get real HTML, while you keep one codebase for all three platforms.

It is not as mature as Next.js for complex web needs, but for products that are mobile-first with a web presence that must be indexable, it is now a credible option.

The bottom line

Cross-platform is not magic; it is engineering. The question is not “can this run on the web?” (almost anything can) but “what does the web need from this product?” If the answer includes search traffic, fast first loads and shareable links, a mobile export alone will not deliver them.

Choosing the right stack up front saves time, effort and money. If you are still deciding on the mobile side, you might also find useful my comparison of React Native and Flutter in 2026 and my take on native vs cross-platform.

How are you handling web and mobile architecture in 2026?