All skills
google-labs-code avatar

/react-native

@ec43edb official

Convert Stitch HTML designs to React Native components, or syncs/updates existing native components to align with the latest Stitch designs, using StyleSheet.

  • 9 files
  • 33.5 KB
  • Updated 3 months ago
  • GitHub

Use this Skill: https://skilld.dev/gh/google-labs-code/stitch-skills/react-native

This session only. Nothing lands on disk.

README.md

≈356 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Stitch to React Native Components Skill

Install

npx skills add google-labs-code/stitch-skills --skill react-native --global

Example Prompt

Convert my Login screen in my Stitch Project to React Native components.

Skill Structure

This skill follows the Agent Skills open standard. Each skill is self-contained with its own logic, validation scripts, and design tokens.

skills/react-native/
├── SKILL.md           — Core instructions & workflow
├── package.json       — Validator dependencies
├── scripts/           — Networking & AST validation
├── resources/         — Architecture checklist & component templates
└── examples/          — Gold-standard code samples

How it Works

When activated, the agent follows a design-to-native pipeline:

  1. Retrieval: Uses a system-level curl script to download Stitch HTML and screenshots from Google Cloud Storage.
  2. Mapping: Translates HTML elements to React Native primitives (View, Text, Pressable, Image, etc.) and converts CSS/Tailwind to StyleSheet.create() calls.
  3. Generation: Scaffolds components using Atomic Design (atoms, molecules, organisms).
  4. Validation: Runs an automated AST check to catch missing Props interfaces or hardcoded style values.
  5. Audit: Performs a final self-correction check against the architecture checklist.

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at ec43edb. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Steadyupdated 3 months ago
What it can do
Runs commands Reads files Edits files
All 5 allowed tools
stitch*:*BashReadWriteweb_fetch
  • TypeScript
  • react-native
  • stitch
  • html-to-native
  • component-generation
  • stylesheet
  • mobile
  • design-system

README badge

README badge for google-labs-code/stitch-skills/react-native

Converts Stitch web designs to React Native components using StyleSheet, mapping HTML elements to React Native primitives and extracting Tailwind styles into theme files. Handles design retrieval via Stitch MCP, HTML-to-component translation, platform-specific code, and navigation setup for multi-screen apps.

Generated from the current SKILL.md.

Does this skill work with Expo or bare React Native?
The skill supports both. It uses React Navigation and standard React Native primitives. The execution steps mention `npx expo start` and `npx react-native start` as valid options for verification.
What Stitch designs can this convert?
The skill converts Stitch HTML designs (web layouts) to React Native components. It requires the design to be available via the Stitch MCP and downloads both the HTML and screenshot for reference.
Does this handle animations and transitions?
No. CSS animations and transitions are not supported. For animations in React Native, you must manually add `react-native-reanimated` and implement them separately.
How does this handle responsive design?
The skill uses Flexbox (the default layout system in React Native) and `useWindowDimensions()` for responsive sizing. Percentage widths and the atomic design approach support adaptive layouts, but there are no viewport units (`vw`/`vh`).
Does this generate navigation between multiple screens?
Yes, if the design has multiple screens, the skill sets up a `NavigationContainer` with a stack or tab navigator in `App.tsx` using React Navigation.

Generated from the current SKILL.md. These answers refresh after source changes.