In short.
Expo DOM Components is a skill (a set of instructions and code examples) for AI coding assistants that helps developers reuse React web components in Expo apps, with the catch that mobile rendering uses embedded browsers with separate JavaScript state. Its examples cover web libraries, CSS, native callbacks and navigation. It is most relevant to focused component reuse; supported SDK versions, installation procedures and measured performance are not established by the supplied source.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to plugins/expo/skills/expo-dom/SKILL.md and plugins/expo/skills/expo-dom/agents/openai.yaml at commit ab6cb2c58b0daa7555590d869dd1aa2ddb5d7632, with the related LICENSE and plugins/expo/LICENSE notices. Other skills, repository installation instructions, Expo runtime internals and third-party dependency implementations are excluded. Component examples, installation, builds, platform behavior, native callbacks and performance remain untested.
The overview
identity
The resource is the expo-dom skill in Expo's expo/skills repository. Its two supplied files are SKILL.md, containing implementation guidance, and agents/openai.yaml, defining the display name Expo DOM Components and an assistant invocation using $expo-dom.
The original folder is [https://github.com/expo/skills/tree/main/plugins/expo/skills/expo-dom]. The skill supplies instructions and examples; the Expo DOM runtime and web libraries used by those examples are separate dependencies.
assessment
The strongest fit is an Expo app that needs a particular web component, such as a chart, syntax highlighter or rich text editor. The guidance explains both how to embed that component and where the boundary with native code matters.
Its usefulness is supported by concrete examples and restrictions, but there are no execution results, device measurements or compatibility tests in the supplied evidence. Claims that web libraries work unchanged should therefore be treated as documented capability, not verified compatibility with every package.
users
The intended users are coding assistants and developers maintaining Expo apps or moving individual React web components into a mobile app. Beginners receive examples of component files and parent components, while experienced developers get details about asynchronous callbacks, isolated state and unsupported routing hooks.
Using the examples requires familiarity with React components, imports, props and an Expo project. For migration of an entire web app, the source points to the separate expo-web-to-native skill.
capabilities
The skill describes using browser-dependent React libraries, complex HTML and CSS, embedded content, and Canvas or WebGL inside Expo DOM components. Its worked library examples use recharts and react-syntax-highlighter.
It also covers webview size and scrolling configuration, asynchronous calls into native parent code, CSS imports, bundled assets, environment detection through IS_DOM, and navigation through Expo Router's Link component and router API.
Using it
requirements
The examples assume an Expo project supporting expo/dom, with expo-router where routing is used. Examples using recharts or react-syntax-highlighter also require those packages. Minimum Expo SDK versions, dependency versions and supported assistant hosts are not specified.
The documented component rules require a file beginning with 'use dom', one default component export, separation from native components, serializable data props and CSS imported within the DOM component's context. Layout route files named _layout cannot be DOM components.
mechanism
According to the skill, a DOM component renders through WKWebView on iOS and WebView on Android. On the web it renders directly, and its special dom configuration prop is ignored.
The native webview has its own JavaScript context, so it cannot directly share state with native components. Ordinary data crosses the component boundary through serializable props; the source separately demonstrates asynchronous function props for requesting native actions and receiving results. The dom prop configures behavior such as scrolling, insets and size.
setup
The documented implementation starts with a separate component file containing 'use dom' at the top. It defines a default React component, types its dom prop with import('expo/dom').DOMProps, includes any required CSS imports, and is then imported by a native parent component.
The assistant metadata supplies $expo-dom as the invocation name. The supplied files do not explain how to install or register the skill in a particular assistant, or how to enable DOM support in a fresh Expo project. Those steps depend on documentation and versions outside this source.
example
The chart example defines a DOM component accepting an array of objects with name and value fields. It renders a fixed 400-by-300 recharts line chart with axes, a grid and a tooltip. This illustrates the intended use of retaining a browser-based visualization inside an Expo app.
A separate native-action example passes showAlert and saveData callbacks into a DOM component and awaits them after a button click. The saveData callback only logs the supplied data and returns success; actual storage is not implemented. Neither example has execution results in the supplied evidence.
Assessment & evidence
limitations
The source warns that webviews add overhead and that large DOM components may affect performance. It favors native components for simple interfaces and performance-critical work, and local modules for deep native integration. Web and native webview rendering may differ.
Several routing hooks cannot be used directly because they need synchronous native routing state. These include useLocalSearchParams, useGlobalSearchParams, usePathname, useSegments, useRootNavigation and useRootNavigationState; their values must be read in the native parent and passed down.
The guidance says to type the dom prop, but its examples vary between required and optional declarations. Parent examples omit the dom prop only where the child component declares it optional. The exact typing requirements for an installed Expo version are not resolved by this source.
The optional feedback command is described as sending project and environment details to Expo, with user agreement required. Its complete payload and data retention terms are not supplied.
reasoning
The practical trade-off is preserving browser-dependent component code while accepting a separate browser runtime on mobile. That makes a focused chart or editor a plausible fit when its existing web implementation matters more than direct native rendering.
This assessment follows the source's advice to keep DOM components focused and retain native navigation chrome. The evidence does not quantify migration time saved, memory use, startup overhead or responsiveness, so it cannot establish that this approach outperforms a native rewrite.
alternatives
The source recommends React Native components for basic layouts and cases where native performance is critical. It points to local modules when direct access to native APIs is the main requirement.
For end-to-end migration of a web app, it names the expo-web-to-native skill. That skill and the implementation details of local modules are outside the supplied evidence, so their requirements and effectiveness are not assessed.
evidence
The available material consists of the complete supplied SKILL.md, its agents/openai.yaml metadata, and MIT notices at the repository root and plugins/expo level. These establish the skill's stated purpose, implementation guidance, assistant metadata and licensing terms.
The fixed source for the guidance is [https://raw.githubusercontent.com/expo/skills/ab6cb2c58b0daa7555590d869dd1aa2ddb5d7632/plugins/expo/skills/expo-dom/SKILL.md]. No Expo runtime implementation, dependency source, build logs, device results or benchmarks are included.
Access & freshness
costs
The supplied files contain no service prices, assistant usage charges or measured runtime costs. Costs for the chosen coding assistant, any Expo services and third-party dependencies are unknown from this evidence.
The MIT licence grants permission to use and redistribute the supplied material, but it does not establish the total cost of developing or operating an app built with it.
rights
SKILL.md declares MIT licensing. Both supplied licence notices identify 650 Industries, Inc., also known as Expo, with copyright beginning in 2025. They permit use, modification, redistribution, sublicensing and sale, subject to retaining the copyright and permission notices in copies or substantial portions.
The material is provided without warranty. The supplied notices do not establish the licences of recharts, react-syntax-highlighter or other dependencies that a developer might add.
freshness
The supplied snapshot identifies commit ab6cb2c58b0daa7555590d869dd1aa2ddb5d7632 and a capture time of 2026-11-15T20:43:11.795Z. This fixes the source version being described; it does not establish the date of the skill's latest substantive update.
The files do not specify a supported Expo SDK or React Native version, and they contain no dated change history. Compatibility with a particular installed version or later release remains unknown.
actions
Before adoption, confirm DOM support and dependency requirements for the Expo version in use, then try one representative web component. Check its rendering, sizing, scrolling and responsiveness on web, iOS and Android before expanding its role.
Keep route-state hooks in the native parent where the source requires it, pass their values as data props, and replace placeholder callbacks with the app's actual behavior. Resolve the required versus optional dom typing against the installed API, and retain the MIT notices when copying or distributing the skill.
