expo/skills · Official

use-dom

Use Expo DOM components to run web code in a webview on native and as-is on web. Migrate web code to native incrementally.

All-time #955 First seen Jan 19, 2026
8-week activity · all time api

Installation

$ npx skills add https://github.com/expo/skills
Feature your product here Skill page unit · reach builders installing agent skills View pricing →

Summary

  • Run web-only libraries in Expo apps by rendering them in webviews on native and as-is on web.
  • Supports any React web library (recharts, react-syntax-highlighter, canvas, WebGL) without modification by wrapping it in a DOM component file with the 'use dom'; directive Passes serializable props and async functions from native to webview, enabling bidirectional communication between native and web contexts Includes webview configuration options via the dom prop: scroll control, safe area behavior, manual sizing, and style overrides Works with Expo Router navigation APIs; router state hooks require passing values as props from native parent components Renders in WKWebView on iOS, WebView on Android, and as standard React on web with identical code

Security audits

Partner security reviews for this skill.

agent-trust-hub Reviewed

Analyzed Feb 17, 2026

snyk Reviewed

Analyzed Feb 17, 2026

socket Score 0.9000 · 0 alerts

Analyzed Mar 18, 2026

  • license 1
  • maintenance 1
  • quality 0.9
  • supply chain 1
  • vulnerability 1

0 alerts

Also in this package

Other skills from expo/skills · top by installs.

npx skills add https://github.com/expo/skills

Browse all from expo/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2.5K
License LICENSE
Default branch main
Open issues 21
Status Active

History

  1. First seen on skills.sh
  2. First recorded snapshot · 30,945 installs