use-dom

Execute DOM-dependent React web code in native Expo applications.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/emilyLi2020/WAVE --skill use-dom-emilyli2020
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-dom
Source: https://github.com/emilyLi2020/WAVE/tree/main/.agents/skills/use-dom
Command: npx skills add https://github.com/emilyLi2020/WAVE --skill use-dom-emilyli2020

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the core problem of running React web components that rely on DOM APIs and web-only libraries in native Expo applications, eliminating the need for full rewrites of existing web code for native platforms.

Core Features & Use Cases

  • Web Library Support: Run web-only React libraries like recharts, react-syntax-highlighter, and rich text editors natively in Expo apps without modification.
  • Incremental Migration: Port existing React web components to native platforms incrementally, preserving existing web component logic.
  • Real-World Use Case: A developer with an existing React web dashboard using recharts can embed the chart component directly in their Expo mobile app via a DOM component, avoiding a full native reimplementation of the chart functionality.

Quick Start

Use the use-dom skill to embed your existing React recharts line chart component into your Expo native app screen without rewriting the chart logic for React Native.

Frequently Asked Questions about use-dom

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run web React components in Expo native apps without rewriting them?

You can run web React components in Expo native apps by using expo/dom APIs to render web-only code in an isolated webview, avoiding full native rewrites. This allows direct execution of DOM-dependent libraries on iOS and Android.

Can I use web-only React libraries like recharts in React Native?

Yes, you can use web-only React libraries like recharts in React Native by embedding the web chart component directly in your Expo app via a DOM component, preserving existing web logic without modification.

What is the best way to incrementally migrate a React web app to native?

The best way to incrementally migrate a React web app to native is porting existing components one by one using expo/dom APIs. This preserves existing web component logic while rendering natively on iOS and Android platforms.

Does the expo/dom API support embedding iframes and complex HTML in Expo apps?

Yes, the expo/dom API supports embedding complex HTML/CSS layouts and iframes in Expo apps. It uses isolated webview rendering to display web content natively on iOS and Android devices.

Are there limitations when rendering web code natively in Expo via DOM components?

Rendering web code natively in Expo via DOM components relies on isolated webview rendering, which may introduce overhead compared to fully native components. It is best suited for incremental migration rather than complete native rewrites.