Skip to content
SkillMixed2,856 tokens in use

stitch::react-native

Converts Stitch HTML designs into React Native components with StyleSheet, a generated theme file, atomic folders and accessibility props.

10,975 stars on the repository Apache License 2.0google-labs-code/stitch-skills · plugins/stitch-build/skills/react-native
npx skills add google-labs-code/stitch-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing stitch::react-native costs

34tokens idle
2,856tokens in use
3,331tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Mixed

Script-ledMixedModel-led

Scripts do part of the work and the model's judgement does the rest.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: scripts/fetch-stitch.sh, scripts/validate.js.

Touches

shelldeclared and detectednetworkdetectedwrites filesdeclared and detected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter4/15
  • Structure25/25
  • Examples6/15
  • Output15/15
  • Size15/15
  • Resources5/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Good
  • File that was not read−15

    a file the skill ships that was not read, so what it does is unknown

    resources/component-template.tsx
  • Runs shell commands−2

    does this on the machine, as the frontmatter declares

    scripts/fetch-stitch.sh, line 16
  • Writes files−4

    does this on the machine, as the frontmatter declares

    scripts/fetch-stitch.sh, line 22
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    scripts/fetch-stitch.sh, line 24

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity80
  • Maintenance52
  • Community68
  • Maturity32
  • Momentum40

This skill translates Google Stitch web designs into React Native code. It maps HTML elements to native primitives, converts Tailwind styles into StyleSheet rules, and builds a src/theme.ts file from the tokens in the downloaded design.

It can also sync existing native components to the latest Stitch project updates. Components are organized as atoms, molecules and organisms, with navigation, safe areas and accessibility labels covered by the rules.

What You Get

  • Components split into src/components/atoms, molecules and organisms
  • A src/theme.ts file with color, spacing and typography tokens from the design
  • Custom hooks in src/hooks and mock data in src/data/mockData.ts
  • React Navigation stacks or tabs wired in App.tsx for multi-screen designs
  • Components with accessibility labels and roles on every interactive element

Common Use Cases

  • Turning a Stitch mobile design into a React Native app
  • Syncing native components to the newest Stitch project changes
  • Replacing web shadows and hover styles with platform-specific native styles

What Makes It Unique

The skill carries a full HTML to React Native mapping table and a CSS to StyleSheet guide, so web layouts land on native primitives such as Pressable, FlatList and SafeAreaView. It requires an exported Props interface on every component and bans raw color values in StyleSheet files.

Under The Hood

The skill calls the Stitch MCP tools for screen metadata, downloads HTML and screenshots with a bundled shell script, and writes theme, data, hook and component files into the project. It runs npm install when modules are missing. Validation, the packager and simulator checks run only after the user agrees.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers