use-dom

Embed browser DOM components in React Native via isolated webviews.

28|1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/bidah/react-native-hifi --skill use-dom-bidah
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-dom
Source: https://github.com/bidah/react-native-hifi/tree/main/skills/use-dom
Command: npx skills add https://github.com/bidah/react-native-hifi --skill use-dom-bidah

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React Native lacks the browser DOM required by many analytics, editing, and visualization libraries, so this Skill shows how to host those web experiences without abandoning the native shell.

Core Features & Use Cases

  • Browser DOM bridge: Documents how placing 'use dom' at the start of a component runs it inside an isolated webview for charts, editors, maps, and other browser-centric UI.
  • Serializable data flow: Explains that props must be JSON-serializable and how the injected dom prop controls scroll, sizing, and events.
  • Example scenarios: Embed recharts, syntax highlighters, Tiptap editors, or Leaflet maps while native screens supply layout and coordinate data.

Quick Start

Add 'use dom' as the very first line of the component file, wrap it in a fixed-size native View, and pass only JSON-serializable props so the webview can render charts or editors.

Frequently Asked Questions about use-dom

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

FAQPage Schema
How do I embed browser DOM content like charts inside React Native?

To embed browser DOM content inside React Native, add 'use dom' as the first line of your component file to run it inside an isolated webview, passing only JSON-serializable props.

Can I use recharts or Tiptap editors in React Native without rewriting them?

Yes, you can use recharts or Tiptap editors in React Native without rewriting them by hosting the web experiences inside isolated webviews using the 'use dom' directive.

What are the requirements for passing props to DOM components in React Native?

Props passed to DOM components in React Native must be JSON-serializable. The injected dom prop controls scroll and sizing, while host views must supply explicit dimensions for reliable WebView rendering.

Does the 'use dom' directive support bidirectional data flow with native views?

The 'use dom' directive supports data flow where native screens supply layout and coordinate data to the webview. The injected dom prop manages scroll, sizing, and events within the isolated browser environment.

Why do my webview charts not render correctly inside React Native screens?

WebView charts may not render correctly in React Native if components lack explicit dimensions from host views or if props are not JSON-serializable, both required for reliable isolated webview rendering.