use-dom

Execute web code in a webview on native platforms and as-is on web.

154|14|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/mweinbach/agent-coworker --skill use-dom-mweinbach
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-dom
Source: https://github.com/mweinbach/agent-coworker/tree/main/apps/mobile/.agents/skills/use-dom
Command: npx skills add https://github.com/mweinbach/agent-coworker --skill use-dom-mweinbach

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires expo/dom, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill allows developers to run web code in a webview on native platforms and as-is on web, enabling the migration of web code to native incrementally.

Core Features & Use Cases

  • Web Code Execution: Execute web code within a webview on native platforms.
  • Incremental Migration: Migrate web code to native without rewriting.
  • Use Case: For developers looking to bring web-only libraries like recharts or react-syntax-highlighter into their Expo apps.

Quick Start

Use the use-dom skill to create a new DOM component for web charts in your Expo app.

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 code in an Expo native app without rewriting it?

To run web code in an Expo native app, you can use DOM components to execute it within a webview on native platforms while rendering it as-is on web. This enables incremental migration of web codebases.

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

Yes, you can use web-only libraries like recharts or react-syntax-highlighter in a React Native app by rendering them inside a webview. This approach allows you to integrate web libraries into native apps without modification.

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

The best way to incrementally migrate web code to a native app is using DOM components that render web code in a webview on native and as-is on web. This allows you to transition your codebase piece by piece without a full rewrite.

Do I need expo/dom to render web components in a native application?

Yes, you need the expo/dom library to render DOM components in a native application. It provides the necessary configuration and rendering logic to execute web code within a native webview environment.

How does a DOM component handle web code execution across different platforms?

A DOM component handles web code execution by running it within a webview on native platforms and executing it as-is on web. This ensures consistent rendering and behavior across both environments during code migration.

Are there limitations to running web libraries in a native webview?

While running web libraries in a native webview allows execution without modification, it relies on webview rendering rather than native UI components. This approach is ideal for incremental migration but may not match pure native performance.