Integrates React web code and web-only libraries into Expo and React Native applications using DOM components.
The use-dom skill provides specialized guidance for implementing Expo's DOM components, enabling developers to run web-centric code verbatim within native environments. This is essential for using DOM-dependent libraries such as Recharts, syntax highlighters, or rich text editors that lack native equivalents. The skill covers the 'use dom' directive, managing serializable props, bridging native actions to webview contexts, and ensuring smooth integration with Expo Router, allowing for an incremental migration path from web to native mobile platforms.
Key Features
01Advanced configuration of webview behavior using the special dom prop
02Bidirectional communication between native code and webviews via async props
03Implementation of the 'use dom' directive for isolated web contexts
04Integration of web-only libraries like Recharts, Chart.js, and Syntax Highlighter
05Seamless navigation integration with Expo Router support inside DOM components
060 GitHub stars
Use Cases
01Incrementally migrating existing React web components to native mobile apps
02Embedding rich text editors or HTML-heavy content that requires a browser context
03Rendering complex data visualizations using web-specific charting libraries