use-dom

Run web-based React components inside Expo native apps via webview.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/apostolos-geyer/StoliStack --skill use-dom-apostolos-geyer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-dom
Source: https://github.com/apostolos-geyer/StoliStack/tree/main/.agents/skills/use-dom
Command: npx skills add https://github.com/apostolos-geyer/StoliStack --skill use-dom-apostolos-geyer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web content rendering challenges in native apps are addressed by running web code inside a webview via Expo DOM, enabling reuse of web libraries and easier migration.

Core Features & Use Cases

  • Run existing web libraries in native apps by rendering web content through a WebView.
  • Migrate web UI incrementally without a full rewrite, preserving visuals and interactions.
  • Use cases include dashboards, charts, syntax highlighting, and HTML layouts within Expo apps.

Quick Start

Create a DOM-enabled component and render it inside a native screen, passing a dom prop to configure the webview.

Frequently Asked Questions about use-dom

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

FAQPage Schema
Can I run existing web React components inside an Expo native app?

Yes, you can run web React components inside an Expo native app by rendering them through a WebView using the 'use dom' directive, which enables web code execution without requiring a full rewrite.

How do I migrate a web UI to a native app without a complete rewrite?

Migrate a web UI to a native app incrementally by integrating web-based React components through Expo DOM, preserving existing visuals and interactions while passing a dom prop to configure the WebView.

What is the 'use dom' directive in Expo for web libraries?

The 'use dom' directive is an Expo integration mechanism that runs web-based React components inside a WebView, enforcing a single default export component to embed complex web libraries like charts or syntax highlighters natively.

Does Expo DOM support embedding complex web libraries like dashboards and charts?

Yes, Expo DOM supports embedding complex web libraries such as dashboards, charts, and syntax highlighting by running the existing web code inside a WebView within native applications.

Are there limitations when using a WebView to render web code in React Native?

When using a WebView to render web code in React Native, you must enforce a single default export component and configure it by passing a dom prop, which may introduce constraints on complex native interactions.