use-dom

Run web code in native apps using Expo DOM components in a webview.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/RubixOwl/Bol_ii-agent --skill use-dom-rubixowl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-dom
Source: https://github.com/RubixOwl/Bol_ii-agent/tree/main/src/ii_agent/settings/skills/builtin/expo-use-dom
Command: npx skills add https://github.com/RubixOwl/Bol_ii-agent --skill use-dom-rubixowl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DOM Components allow web code to run in a webview on native platforms while rendering as-is on web. This enables using web-only libraries like charts, syntax highlighters, or any React web library in your Expo app without modification.

Core Features & Use Cases

  • Web-to-native compatibility: run web components inside native apps via a webview
  • Migrating web code to native: gradually port web apps to Expo DOM
  • Embeds and rich content: render HTML/CSS/JS content inline on all platforms

Quick Start

Install the Expo DOM component in your project and render it in your app to load web content inside a native webview.

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 inside a native app using Expo DOM components?

To run web code inside a native app, use Expo DOM components that render web content in a webview on native platforms. You need a 'use dom' directive, a single default export, serializable props, and isolated styling within the component file.

Can I use web-only libraries like charts and syntax highlighters in React Native?

Yes, you can use web-only libraries like charts and syntax highlighters in React Native. Expo DOM components render web code inside a native webview, allowing you to use web-only React libraries in your Expo app without modification.

Does Expo DOM support rendering web components on iOS, Android, and web?

Expo DOM supports rendering web components on iOS, Android, and web. DOM components render web content in a webview on native platforms while rendering as-is on web, ensuring cross-platform compatibility.

What is the best way to migrate a web app to React Native gradually?

The best way to migrate a web app to React Native gradually is using Expo DOM. It enables porting web apps to native by running web code inside a webview, allowing incremental migration without rewriting components immediately.

What are the requirements for creating a DOM-enabled component in Expo?

Creating a DOM-enabled component in Expo requires a 'use dom' directive, a single default export, serializable props, and isolated styling contained within the component file. These requirements ensure proper webview rendering on native platforms.