SKILL

expo-dom

Use Expo DOM components to run web code in a webview on native and as-is on web. Migrate web code to native incrementally. For the end-to-end migration of a whole web app, use the expo-web-to-native skill.

Target: Mobile development. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • What are DOM Components?
  • When to Use DOM Components
  • When NOT to Use DOM Components
  • Basic DOM Component
  • Rules for DOM Components
  • The dom Prop
  • Common dom Prop Options
  • Exposing Native Actions to the Webview

DOM components allow web code to run verbatim in a webview on native platforms while rendering as-is on web. This enables using web-only libraries like recharts, react-syntax-highlighter, or any React web library in your Expo app without modification. Use DOM components when you need: Web-only libraries — Charts (recharts, chart.js), syntax highlighters, rich text editors, or any library that depends on DOM APIs Migrating web code — Bring existing React web components to native without rewriting Complex HTML/CSS layouts — When CSS features aren't available in React Native iframes or embeds — Embedding external content that requires a browser context Canvas or WebGL — Web graphics APIs not available natively Avoid DOM components when: Native performance is critical — Webviews add overhead Simple UI — React Native components are more efficient for basic layouts Deep native integration — Use local modules instead for native APIs Layout routes — layout files cannot be DOM components Create a new file with the 'use dom'; directive at the top: 1. Must have 'use dom'; directive at the top of the file 2. Single default export — One React component per file 3. Own file — Cannot be defined i

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
expo/skills
Source file
plugins/expo/skills/expo-dom/SKILL.md
Fixed revision
a9e5bd3fa00b4e61f632e43f85da73aee1942582
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: Expo Skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:42.061Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.