stitch-react-native
Installation
SKILL.md
Stitch React Native
This skill is a catalog-normalized import from https://github.com/google-labs-code/stitch-skills at commit 3f64079d75d025bc5890c73669f27c26a2d80b31, source path plugins/stitch-build/skills/react-native. The upstream control file was corrected for this workspace: the verified Stitch MCP surface here is design-system oriented, so screen lookup, screen generation, and screen editing tools must be used only when the current host explicitly exposes them.
When to Use This Skill
- Use when Stitch web designs should become React Native screens or existing native components must be synchronized with newer Stitch evidence.
- The task involves Google Stitch project IDs,
.stitch/artifacts, DESIGN.md files, Stitch exports, or Stitch-specific validation. - The broader
stitch-designrouter points here as the narrowest workflow.
Workflow
- Start from exported Stitch HTML and a screenshot, using host-listed screen tools only when present.
- Extract current theme values into
src/theme.tsand record available project/screen identifiers plus the sync timestamp in.stitch/metadata.json. - Map web elements to React Native primitives and wrap visible text in
Text. - Translate CSS into
StyleSheet.create()with shared theme values rather than raw color literals. - Replace hover, fixed positioning, browser-only CSS, and DOM events with native patterns.
- Use
react-native-safe-area-context, accessibility labels and roles, useWindowDimensions, Platform.select, FlatList, and SectionList where appropriate. - Validate syntax with the bundled validator when dependencies are installed.