What problem does it solve?
This skill provides an integrated, offline-capable code editor for React Native apps by embedding CodeMirror 6 inside a WebView and exposing a bidirectional RPC API for programmatic control of content, language, theme, cursor/selection, and history, plus built-in asset-copy tooling for Android and iOS.
Core Features & Use Cases
- Fully offline CodeMirror 6 assets loaded from the WebView and controlled via a DDA-based bridge.
- Rich editor API: setValue, setLanguage, setTheme, setExtensions, setViewport, and history/cursor/selection management, with event callbacks like onContentUpdate and onHistorySizeUpdate.
- Use cases include embedding an in-app IDE, tutorials, or code editors in RN apps across Android and iOS, with iOS URI resolution via expo-file-system.
Quick Start
Install the package, copy assets to your project, render CodeEditor, and obtain the api in onInitialized to drive editor actions.