Docs
Everything to run a Next.js App Router app natively on iOS and Android with next-native: for the coding agent doing the work, and for you. As of 2026-12-02.
Before you start
- The next-native repository is private while v0 settles.
- next-native is not on npm yet. Its planned name is @next-native/core (installed under the alias next-native); today you install a packed tarball, next-native-0.1.0.tgz.
- Do not run a bare
npx next-nativewhere it is not installed: npm has an unrelated package called next-native, and npx would offer that.
Start
Give your coding agent the next-native skill: it explains how the framework works, the commands, what renders differently and how to verify a change. Copy it into your agent's skills (for Claude Code .claude/skills/next-native/SKILL.md) or paste it into the chat, then ask it to add next-native to your app. In an app that already has next-native, npx next-native init links it for you.
---
name: next-native
description: How to build, run, debug and write code for a next-native app, a Next.js 16 App Router app that ships as a native iOS (Swift/UIKit) and Android (Kotlin, framework Views) app. Load it when the project has a next-native.config.json, depends on or links the next-native package (imports from next-native/tab-bar, next-native/platform, next-native/next, or `@import "next-native/tailwind.css"`), or when the task is to run, build, inspect, debug or measure the native app, add a tab bar, deal with safe areas or the status bar, find out why a component became a web island, or port an Expo / React Native app to Next.js + next-native.
---
# next-native
next-native renders an **unchanged Next.js 16 App Router app** as a native app. Server Components run on your Next
server as usual; the phone reads Next's own Flight (RSC) payloads and draws them as native views (UIKit on iOS,
framework Views on Android), styled by the CSS Next emits. Client components (`'use client'`) run as React in
the app's JS engine (JavaScriptCore on iOS, Hermes on Android) and render native views too. Only a client component
that needs a real DOM becomes a **web island**, a WebView sized like the element it replaces. The same code is still
a normal Next web app in browsers.
The rule: write normal web code. The goal is "looks and behaves like Chrome / Mobile Safari", so when something
differs, compare the page in Chrome (and Mobile Safari for iOS) before changing app code. The design is in the
framework's `docs/SPEC.md` (in the next-native repository, not in the installed package); section numbers below point there.
## Start (`npx next-native <command>`, run in the app's directory)
```sh
npx @next-native/core create my-app # a NEW app from the starter template (today: npx -p <tarball> next-native create my-app)
npm install next-native@npm:@next-native/core # an existing app: or a tarball / `node <checkout>/packages/next-native/bin/next-native.mjs link`
npx next-native init # once: withNextNative in next.config, .gitignore, this skill for the project's agents
npx next-native doctor # Node, Xcode, simulators, Android SDK, signing: each with its fix
npx next-native dev ios # next dev + the app on its own simulator (dev android, dev ios android; --device for phones)
npx next-native check # web islands, CSS native drops, missing APIs, per file and line, without a build
npx next-native logs --follow # the running session's log, from another terminal
```
`dev` keeps running (Ctrl-C stops it): start it in the background and read `logs`. The first `dev ios` builds the dev
shell (~30 s), the first `dev android` ~70 s, later sessions 3–7 s; the first iOS release build ~5 min.
**Adding it to an existing app** (its own config, plugins, auth): follow `node_modules/next-native/docs/existing-app.md`
(repository: `docs/guides/existing-app.md`): prerequisites, Next 15 → 16 in a pnpm / Turborepo workspace, env files,
`init` / `doctor` / `check`, and "When it looks wrong" (unstyled, blank, the whole app in one web view); CLI failures
end with a `guide: …existing-app.md#<section>` line: read that section. Env: next-native runs `next` itself and passes
it the files the app's `dev` / `build` / `start` scripts load with dotenv-cli (`dotenv -e ../../.env --`); another
loader's root `.env` is not read: keep the env file in the app's folder. In short: install with the app's package manager (`pnpm add`,
`yarn add`; a tarball before the npm release: `pnpm add ./next-native-0.1.0.tgz`, still imported as `next-native/…`).
Needs React ≥ 19.3 and Next ≥ 16.4.5 (16.4.6 verified; earlier 16.x releases have security advisories): `init` and
`doctor` print the upgrade command when the app is older (`next@^16.4.6`; from Next 15, Next's codemod with
`--skip-adoption`); run
the app's `next build` after it. `init` puts `withNextNative` around the config object inside other plugins
(`withNextIntl(withNextNative(nextConfig))`); it does not write `next-native.config.json`: add `"name"`, `"ios":
{ "bundleId" }`, `"android": { "applicationId" }` yourself, and `"serverUrl"` only once there is a deployment (`dev`
ignores it). `check` naming the app's charts, maps or canvas parts is expected: they become web islands; one named "around
{children}" in a layout puts every page under it in one WebView (fix that one: its `.native.tsx` renders `{children}`). In `dev`, the
first visit of a route that renders a package's client component the islands bundle has not seen shows the page's
server content for a moment before its client components work (dev log: "a screen waits for …"): the islands bundle
adds it, then the screen mounts once. "unknown client module" shows only when that failed (with its build error) or
nothing names the module. A new or deleted client file reaches the running app as a patch, without reloading it
(well under a second, "islands patched in …" in the log; client state stays). One that needs a DOM (a chart) comes the
same way as its new web island, then the web islands page rebuilds ("web islands rebuilt in … (new: …)", a few
seconds): only that web island loads it, the other client components keep their state. The islands bundle rebuilds ("islands rebuilt in …",
the app reloads its client components) only for `"use web"` / `.native` changes, a new or removed export of a `"use server"` file (a body edit needs no build;
the app's first Server Action file comes as a patch), a new module whose DOM need the running build cannot take (it
changes a module already loaded natively), or a deleted web island something else imports. A file exporting helpers /
`cva` variants / hooks beside components re-runs with the components that import it (state kept); all client components reload
only when nothing that has run imports it.
**Updating next-native** (README, Updating next-native): `npm install <path>/next-native-0.1.0.tgz` (or `npm update
next-native`); pnpm: replace the tarball, then `pnpm install --force` (`pnpm add` / `pnpm update` keep a same-named
tarball's old files). `doctor`'s "next-native" line names the installed build (commit, pack time) and fails when
node_modules is not the app's tarball; "Installed shells" lists what each device runs. The next `dev` / `build` / `run` / `preview` prints
"next-native changed (… → …)" once and clears the old package's caches and bundles; the shells rebuild and reinstall by
themselves. Old behaviour after an update: run `doctor` first; restart a `next dev` started before the update.
**An app made with `create`** has a `README.md` listing every file (`app/(tabs)/layout.tsx` holds the tab bar: a new
tab is a folder in `app/(tabs)/` plus one `TabBar.Tab` with `symbol` (SF Symbol) and `icon` (SVG for Android / web)).
## Where things are (read the file for the task at hand)
| Task | Read |
|---|---|
| every command and flag, `next-native.config.json`, generated files, workspaces, the recommended workflow | [references/cli-and-config.md](references/cli-and-config.md) |
| writing app code: what stays native, web islands (`"use web"`, `.native.tsx`), UI libraries, styling, data, forms, view transitions, AI chat screens, long lists | [references/writing-code.md](references/writing-code.md) |
| the native tab bar, splash screen, safe areas, status bar, dark mode, haptics, titled alerts (`next-native/alert`), pull-to-refresh, accessibility | [references/app-shell.md](references/app-shell.md) |
| storage, secrets (`next-native/secure-store`), shrinking photos (`next-native/image`), location, files (OPFS), motion, the microphone (`getUserMedia` + `MediaRecorder`, `permissions.microphone`), the contact picker (`navigator.contacts`), passkeys (`navigator.credentials`, `passkeys.domains`), sign-in (OAuth / OIDC, `onSystemSignInEnd`), push (`@next-native/push`, iOS + Android: `push setup`, `sqliteStore`), native modules and overrides (Swift/Kotlin escape hatches), extension targets (home-screen widgets, share targets, `next-native/shared-data`) | [references/device-and-native-code.md](references/device-and-native-code.md) |
| errors, the dev overlay, logs, driving the app (`inspect`, `tap`, screenshots), `check` and `doctor` | [references/debugging.md](references/debugging.md) |
| release builds, `preview`, store packaging (`build ios --archive`, `build android --release --aab`), OTA updates by deployment, iPhone and Android phones | [references/releases.md](references/releases.md) |
| porting an Expo / React Native app: setup, expo-router → App Router, RN components → DOM, `+api` routes, Expo modules → web APIs / next-native modules, fixtures for signed-in screens, known gaps | [references/porting-from-expo.md](references/porting-from-expo.md) |
| something does not render or work natively: the known limits and what to do | [references/limits.md](references/limits.md) |
| what each element, control, CSS feature, Next.js feature and web API becomes on iOS and on Android (the native class, per platform), and what still runs in a web island | `node_modules/next-native/docs/HOW-IT-MAPS.md` (`docs/HOW-IT-MAPS.md` in a checkout) |
## Gotchas
* **Node ≥ 22.15** for an installed next-native (`nvm install --lts`; older Node stops with that message); a checkout
link runs from 22.6. Below 22.12 there is no `require()` of ES modules and a Tailwind v4 app's `next dev` fails on
`app/globals.css` ("require() of ES Module … not supported").
Turbopack caches that failure: `next-native dev` clears its cache after a Node change; for plain `next dev`,
`rm -rf .next/dev/cache/turbopack`.
* **Linking a checkout** (contributors; apps install the package): an undeclared symlink (`ln -s`, `npm link`; not in
package.json) is deleted by the next `npm install` of a package (`npx shadcn init` runs one); if you keep one,
re-create it in a `postinstall` script.
Turbopack resolves nothing outside the project root, so a symlink that leaves it fails (`Can't resolve
'next-native/…'`, cached by Turbopack until cleared) unless `turbopack.root` covers both folders. `next-native link`
avoids both: a declared `file:` dependency, and `withNextNative` adds the package's folder as an additional
Turbopack root. `doctor` checks the link; `dev`/`build` put a declared link back.
* **iPhone builds** use automatic signing with `ios.teamId` (null: the team whose provisioning profiles register
devices); the first build registers the phone. The phone must be unlocked with Developer Mode on; `doctor` prints
the fix for each signing failure; a paired phone that slept (its devicectl tunnel down) is woken by the command. A `dev --device` phone reaches the Mac over the LAN and asks for Local Network
access once.
* **Judge performance on release builds** (`run ios|android --release`), never dev builds, and on a real phone when you
can: the simulator and emulator are not the phone.
* **Pending navigations**: `startTransition(() => router.push(href))` keeps `isPending` true until the new page
commits, as on the web: use it for a row's spinner rather than native timers. A `'use client'` page that `use()`s
data with no `<Suspense>` / `loading.tsx` above it holds its navigation until it renders (iOS shows the pushed page
empty meanwhile): give it a `loading.tsx` (or a server `<Suspense>` around it) for an immediate loading state: its
fallback shows while the component waits, as in Chrome (README "Pending navigations"). A push to a modal route and
`router.replace("?q=…")` (another URL of the page shown) stay pending until they show, on both platforms;
`router.refresh()` in a transition does not (drive that spinner from your own state).
* **Compare with the browser**: when a screen looks wrong, open the same route in Chrome (and Mobile Safari for iOS)
at a phone viewport first. If the browser shows the same thing, it is the app's CSS; if not, `inspect` the element
(matched rules, native decisions) and report the difference to next-native.
* **Popular packages**: `docs/COMPAT.md` § Popular packages says, for 134 common client packages, which run natively,
which become web islands and why (measured 2026-11-13; since then Lottie (`lottie-react`, dotlottie-react), React
Aria / HeroUI v3, UI SDK, Motion's drag and glimm's band are native; `react-select` works as a web island, and a
package stylesheet a client component imports, react-day-picker's `style.css`, styles natively). Before adding a
package, check its row.
* **next.config `basePath`** works natively (links render with it, requests go below it, `usePathname()` has none,
`location.pathname` has it), and OTA updates download below it too. A `'use client'` root layout's `<html>` / `<body>`
attributes are the document's (`:root`, `html.dark`).
* **Inline `<script>`** in a server component (a theme script: localStorage → `<html data-theme>` / `.dark`) runs once,
before the first client component (a page without client components starts JS for it); writing a page element's text from it does nothing natively (render the value from a
client component), and a plain `<script src>` never loads (use `next/script`). `next-native check` flags both.
* **`next/script`** runs natively: `beforeInteractive` (once, in order, before the first client component; a failed
`src` load or `integrity` mismatch stops the later ones), `afterInteractive` (the default) at mount, `lazyOnload` after
the screen's scripts loaded, with `onLoad` / `onReady` / `onError` as in Chrome. `document` there is document-lite:
analytics like plausible send page views, a script that builds DOM (GTM, a video player API) throws (a warning names
it). `worker` and `type="module"` do not run; on Android a script using dynamic `import()` does not parse. For a
library that needs the DOM: import it in a client component, or use a web island. `next-native check` names inline
scripts that build DOM.
* A release build embeds the launch route and fetches other pages from `serverUrl`; a page that is neither embedded
nor prefetched needs the network (offline: "Could not load …" with "Try again", retried once back online). A dynamic
(`ƒ`) launch route is not embedded: offline it shows the page the last session got, which only an HTTP redirect
answer (`proxy.ts`, next.config `redirects`) removes (releases.md).
* **Route presentations**: a route opens as a native sheet or full-screen modal with one line in next-native.config.json
`routes` (`"/login": { "presentation": "fullScreenModal" }`, `formSheet` with `detents`); no new code
(cli-and-config.md).
- SKILL.md
- the mental model (an unchanged Next 16 app; server components and 'use client' components alike drawn as native views, client code running in the app's JS engine; only components that need a real DOM become web islands), the start commands, and how to run dev in the background and read the logs
- references/cli-and-config.md
- every command, flag and next-native.config.json key, ports, generated files
- references/writing-code.md
- what stays native, web islands ("use web", .native.tsx), UI libraries, styling, data, lists
- references/app-shell.md
- tab bar, splash, safe areas, status bar, dark mode, haptics, alerts, pull-to-refresh, accessibility
- references/device-and-native-code.md
- storage, secure store, images, location, files, microphone, contacts, passkeys, sign-in, push, Swift/Kotlin modules, widgets
- references/debugging.md
- error overlay, logs, inspect / tap / screenshots, MCP, check, doctor, and what only the user can do
- references/releases.md
- release builds, preview, store packaging, OTA updates, phones
- references/porting-from-expo.md
- Expo / React Native → Next.js + next-native
- references/limits.md
- the limits an agent meets most, with fixes
The whole docs page as markdown for an agent: /docs/agents.md.
MCP tools: dev_status, devices, tree, inspect, highlight, open_source, tap, type, dialog, scroll, screenshot, navigate, reload, logs.
- 01
Add it to an existing app
Keep Chrome open on the same next dev (http://localhost:3000, 390 px wide) beside the simulator. In the app, a two-finger long-press on the simulator (three on a phone) turns on the inspector.
node -v# v24.x or v26.x (≥ 22.15)npx @next/codemod@latest upgrade latest --skip-adoption# only if below Next 16 / React 19.3npm install ../next-native-0.1.0.tgz# the tarball until the npm releasenpx next-native init# oncenpx next-native doctornpx next-native checknpx next-native dev ios# or: dev android · dev ios android - 02
Start a new app
npx -p ./next-native-0.1.0.tgz next-native create my-app# today: the packed tarballcd my-appnpm run dev# the website, http://localhost:3000npx next-native dev ios# the iOS app on its own simulator - 03
Release builds and phones
An app with no server code: docs/guides/client-only.md.
npx next-native preview ios# next build + next start on this Mac + a release appnpx next-native run ios --release# build, install, launch on the simulatornpx next-native run ios --release --device# signed device build (set ios.teamId)npx next-native build ios --archive# App Store .xcarchive + .ipa (never uploads)npx next-native build android --release --aab# signed with android.signing
Working with a coding agent? Switch to Agent setup and give it the skill.
Requirements
- macOS
- to build, for both platforms
- Xcode 26 or 27
- with an iOS Simulator runtime (Xcode ▸ Settings ▸ Components); open it once, then
sudo xcode-select -s /Applications/Xcode.app - Node ≥ 22.15
- Node 24 or 26 LTS recommended (
nvm install --lts) - Next.js 16, App Router
- 16.4.6 verified, ≥ 16.4.5 advised; no Pages Router
- React ≥ 19.3
- —
- Package manager
- whichever the project declares in
packageManager: npm, pnpm, yarn or bun; never needs sudo - Android (optional)
- SDK with build-tools 36,
platforms;android-36,ndk;27.1.12297006, JDK 17 and kotlinc (Android Studio bundles them), an emulator or a phone with USB debugging; no Gradle - Run targets
- iOS 17+, Android 10+ (minSdk 29)
npx next-native doctor checks all of these and prints the fix for each.
How it works
- Next still renders your server components. The app reads Next's own Flight (RSC) payloads and draws them as native views: UIKit on iOS, framework Views on Android. No WebView for the page.
- The CSS Next emits (Tailwind v4 unchanged) is compiled into a style table; layout is Yoga plus grid, tables and sticky / fixed positioning.
- "use client" components run as small React 19 islands in JavaScriptCore (iOS) and Hermes (Android), and render native views too. Web APIs, forms, Server Actions, routing hooks and Fast Refresh work.
- Only a client component that needs a real DOM (canvas, charts, maps, editors) becomes a web island: a WebView sized like its box. Avoid it with a .native.tsx variant.
- Release builds embed the launch route, so the first frame needs no network; other pages come from serverUrl, prefetched like next/link. A redeploy updates installed apps over the air.
- Dev needs no Xcode project: a prebuilt dev shell (no Gradle on Android), never rebuilt for JS, TSX or CSS edits.
- Every dev session exposes an automation channel (tree, tap, type, scroll, screenshot, navigate, logs) through the CLI and an MCP server.
CLI
Run as npx next-native … inside an app that has it installed.
| create <dir> [--no-install] | a new app from the starter template |
| init [--no-agents] | once per app: withNextNative, .next-native/ ignored, the agent skill |
| doctor [--no-signing-probe] | Node, Xcode, simulators, Android SDK, devices, signing; each with its fix |
| check [dir] [--json] [--strict] [--all] | what native renders differently, per file:line, no build (--strict for CI) |
| dev <targets> [--port 3000] | next dev plus every target in one process: ios [--sim <udid>|--device] · android [--device] |
| build ios|android [--release|--debug] | ios --archive for the App Store; android --aab for Play; never uploads |
| run ios|android [--release] [--device] | build, install and launch |
| preview ios|android | the production build: next build + next start on this Mac + a release app |
| publish [ios] [android] | the OTA files of a build |
| inspect [--visible] [--json] | the agent tree; inspect <id> · --at x,y · --pick |
| tap <id> | --text <t> | --testid <id> | --at x,y | a real touch, also inside web islands |
| type <id> <text> · dialog · scroll <dy> · navigate <path> · reload | drive the running app |
| screenshot [--out <file.png>] | a screenshot of the running app |
| logs [--follow] [--device ios|android|web] | the session's log |
| mcp | the stdio MCP server for agents |
| --app <folder|package> · --verbose | global: pick the app in a monorepo; more output |
Dev tools
In a dev build the NN button sits in a corner of the app (a two-finger long-press on the simulator, three on a phone, also opens the inspector). Its tools show what renders natively and what does not.
- Highlight
- Outlines every element on screen by HOW it renders, with a legend counting each kind: native views of server markup (blue), of a client component (green), of a UI SDK / Base UI / Radix shim (purple), web islands (red, labelled with their module, e.g. web · step-transition.tsx), virtualized list rows (orange, dashed), system overlays such as sheets and menus (cyan), and CSS-drawn overlays (pink). Where the kind changes, a small label names it. Tap an element to see why it renders that way. The fastest way to find what fell back to a web view.
- Inspect
- Tap an element: its JSX source (file:line), the component chain from the page down, server or client, the element and its styles. ↑ selects the parent, </> opens the line in your editor ({ "editor": "cursor" } in next-native.config.json).
- Reload
- Reloads the page; the dev button also shows compiling, errors and hints (a tap that waited on the server, a component that became a web island and why).
- Errors and the log
- Build and runtime errors open the overlay; everything also streams to the terminal and to
npx next-native logs, for you and for agents (MCP: highlight, inspect, open_source…).
Configuration
next-native.config.json, beside next.config. init does not write it and dev does not need it: add it before a release.
- name
- the app's name, under the icon
- icon
- a path, or { ios, android }; defaults from app/apple-icon.*, the manifest, app/icon.*
- version, build
- version and build number (defaults "1.0", 1); raise build per store upload
- ios
- bundleId, teamId (device signing), minIOS ("17.0"), usesNonExemptEncryption, privacy
- android
- applicationId, minSdk (29), versionCode / versionName, cleartextHosts, signing (passwords in NN_KEYSTORE_PASS / NN_KEY_PASS)
- serverUrl
- the deployment release builds fetch pages from and post Server Actions to (NEXT_NATIVE_SERVER_URL overrides; dev ignores it)
- initialRoute
- the launch route, embedded in release builds
- bake
- "launch" | "all" | "none" | a list of routes: the pages a release build embeds
- presentation, routes
- platform overlays app-wide or per overlay; per-route native presentation (push, formSheet, …)
- dom
- web island rules (fallback, web, native, strict)
- islands
- { "webApis": [...] | "all" }: Web APIs kept in release builds
- aliases
- replace an import in the native islands bundle only
- reactCompiler
- true | false, overrides next.config's for the native app
- updates, splash, permissions
- OTA / store update gate; the splash screen; prompt texts for location, motion, microphone
- passkeys, signIn, inspector
- WebAuthn domains; system-browser sign-in; { "editor": "cursor" } for open in editor
Supported libraries
These run natively through next-native's own implementation of the library's API: same imports, same props, the app's CSS. Any other library runs as is, natively when it needs no browser DOM (data, state, dates, validation…), else as a web island.
Next.js
- next/link, next/navigation, next/routerthe native router: pushes, back, prefetch
- next/image, next/form, next/script, next/errornative images, forms that submit natively, Next's script loader, catchError
- next/offline, next/web-vitalsthe device's connectivity; web vitals report nothing natively
- next-themes, next-view-transitions, nextjs-toploaderlight / dark from the system, view transitions, the top progress bar
Component libraries (shadcn's foundations)
- @ui-sdk/react: 32 componentsaccordion, alert-dialog, avatar, button, checkbox, collapsible, dialog, drawer, field, hover-card, input, label, menu, menubar, meter, navigation-menu, overlays, popover, progress, radio, scroll-area, segmented-control, select, separator, slider, switch, tabs, textarea, toast, toggle, toolbar, tooltip
- Radix UI primitives: 23accordion, alert-dialog, checkbox, collapsible, context-menu, dialog, dropdown-menu, hover-card, menu, menubar, navigation-menu, popover, radio-group, scroll-area, select, slider, switch, tabs, toggle, toggle-group, tooltip and their portals / overlays
- Base UI: 19alert-dialog, avatar, context-menu, dialog, drawer, menu, menubar, navigation-menu, popover, preview-card, scroll-area, select, separator, slider, toast, tooltip, useRender and its controls
- react-aria-components: ~100 parts(shadcn's React Aria flavour, HeroUI v3) Autocomplete, Breadcrumbs, Button, Calendar and RangeCalendar, Checkbox and CheckboxGroup, ComboBox, Dialog and Modal, Disclosure, Form and FieldError, ListBox, Menu and SubmenuTrigger, Meter, Popover, ProgressBar, RadioGroup, SearchField, Select, Slider, Switch, Table, Tabs, TagGroup, TextField and TextArea, ToggleButton and ToggleButtonGroup, Tooltip, plus their sub-parts and providers
Animation, carousels, media
- motion / framer-motionanimations on the native views
- lottie-web, @lottiefiles/dotlottie-weba native Lottie player
- embla-carousel (+ react, auto-scroll)the same API over a native scroll view
- glimmits React / Next adapters
Inputs, toasts, utilities
- sonnershadcn's Toaster: the same toast() API
- input-otpshadcn's InputOTP on a native field
- clipboard-copy, copy-to-clipboardthe system pasteboard
- react-domuseFormStatus, flushSync, createPortal and the other client APIs
Analytics
- @vercel/analytics (+ /next), @vercel/speed-insightspage views from the native router; Speed Insights sends nothing natively
Known limitations
The ones you are most likely to meet. npx next-native check lists your app's own, per file and line. The recurring way out is a web island ("use web"), a native variant (foo.native.tsx) or a native module of your own in Swift or Kotlin.
Platform and versions
- Next.js 16 App Router only, React ≥ 19.3; no Pages Router.→ npx @next/codemod@latest upgrade latest --skip-adoption
- Builds need macOS. Apple Silicon Mac and Vision Pro targets have not been run yet.
- iOS 17+, Android 10+. Not on npm yet.→ install the packed tarball
Next.js behaviour
- The segment cache is not seeded per segment: prefetches and second navigations re-request what was shown.→ mostly no visible effect
- Inline <style> from experimental.inlineCss is not applied.
- redirect() / router.push() to another origin opens the system browser.
- iOS: a pushed client page that suspends with no Suspense boundary shows empty until it renders.→ add loading.tsx
- startTransition(() => router.refresh()): isPending ends at once.→ drive that spinner from your own state
- Links and redirects to route handlers or files open in a sheet (Android: PDFs in the system).→ fetch it from client code
- A baked page that revalidates shows its embedded copy first.→ "bake": "none"
- Crossing multiple root layouts is not a full page load.→ keep root state out of module scope
- next dev --webpack and --experimental-https are left out natively.→ next build --webpack works
- Release builds drop Web APIs no bundled code names (ReferenceError).→ "islands": { "webApis": [...] } or "all"
HTML and CSS
- Not native: <iframe>, <canvas> 2D, WebGL / WebGPU, contenteditable, Web Components, MathML, embed / object.→ a web island
- Page text is selectable in inputs only. Long tables take column widths from the header and the first 32 rows.→ give wide columns a width
- Dropped CSS: columns-*, writing-mode, view() timelines, anchor positioning, @container style(), -webkit- props without a standard twin.→ grid / flex, plain animations, explicit positioning
- Runtime CSS-in-JS (styled-components, Emotion, MUI) falls back to web islands.→ Tailwind, CSS Modules, plain CSS, StyleX
- Remote stylesheets (Google Fonts @import) are fetched at build time and frozen into the app.
- WPT reftests: 82.5 % of 1,825 sampled render as Chrome does.
Client components and libraries
- DOM APIs beyond "document-lite" make the file a web island; inside an event handler they fail at run time.→ a leaf component, a ref, or .native.tsx
- No Web Workers or WebAssembly natively (WebSocket, EventSource, MessageChannel, CompressionStream are native).→ a leaf web island, or the server
- Clerk's <ClerkProvider> in a root providers file puts the whole app in one WebView.→ keep it around the routes that need it
- Motion drag / whileDrag / useDragControls are not played natively.→ "use web"
- autoFocus focuses without the keyboard, as Mobile Safari does.→ useEffect(() => ref.current?.focus(), [])
- Web islands in dev have no Fast Refresh (they reload), and each costs a WebView's memory.
- Client-rendered lists get slow past ~100 rich or ~1,500 plain rows on a low-end phone.→ server-render long lists (they are virtualized)
- No SQL API on the device.→ IndexedDB, or SQLite on the server via Server Actions
Android
- Phones draw your tab bar markup (no platform bar); from 600 dp, native-tabbar becomes a Material navigation rail.
- No <input type="color"> picker.→ your own picker or a web island
- AVIF images over 4096 px on a side draw blank.→ AVIF ≤ 4096 px, or WebP / JPEG
- Web island responses arrive whole (no streaming).→ stream in a native client component
- Release builds: a computed import() stops hermesc.→ /* webpackIgnore: true */ or a literal path
- Hermes lacks some built-ins (Temporal, Float16Array, some Intl and RegExp features).→ feature-test
- Some soft navigations open a new screen and reset layout client state (modal routes, parallel slots).
- Memory after launch is 19 % above a blank Expo app on the emulator (WebView warm-up).
Device features
- Web APIs first (geolocation, storage, IndexedDB, motion, share, clipboard, passkeys, file capture, microphone). Not built: background location, maps, Bluetooth, the whole address book, in-app purchases, a live camera stream.→ a native module of your own
- Native SDK dependencies are not resolved (no CocoaPods, Gradle or SPM).→ list each .xcframework / .jar / .aar
- Passkeys: iOS 17+ / Android 14+, not in web islands, no autofill.
- Push (@next-native/push, unpublished): no images, actions, silent pushes or local notifications.
Builds, updates and stores
- Release builds embed only the launch route; other pages need the network unless prefetched or baked.→ bake
- OTA needs withNextNative and a reachable serverUrl; native code changes need a store update.
- Store submission is not automated: the archive / AAB is built, never uploaded. The first iOS release build takes ~5 min.
- Hosting must pass Host / X-Forwarded-Host and not buffer streams.
- No app built with next-native is in the App Store or Google Play yet.
Accessibility
- Follows HTML and ARIA on both platforms. Gaps: iOS aria-invalid and radio roles, aria-posinset, live-region removals.
Status
- 90.1 %
- of Next.js's App Router e2e tests pass on iOS
- 726 of 806 · 2026-11-26
- 87.1 %
- pass on Android
- 700 of 804 · 2026-11-26
Counted on Next.js 16.4's own App Router e2e fixtures; a test counts when it passes in Chrome. Most remaining failures are request-protocol differences, not what a page shows.