home / skills / ehtbanton / claudeskillsrepo / react-native-component-generator
This skill generates complete React Native TypeScript components with styles and platform handling for immediate use.
npx playbooks add skill ehtbanton/claudeskillsrepo --skill react-native-component-generatorReview the files below or copy the command above to add this skill to your agents.
---
name: react-native-component-generator
description: Generate React Native components with TypeScript, styling, and platform-specific code. Triggers on "create react native component", "generate rn component", "mobile component", "react native screen".
---
# React Native Component Generator
Generate React Native TypeScript components with StyleSheet and platform handling.
## Output Requirements
**File Output:** `*.tsx` component files
**Format:** Valid React Native TypeScript
**Standards:** React Native 0.72+, TypeScript
## When Invoked
Immediately generate a complete React Native component with styles and types.
## Example Invocations
**Prompt:** "Create React Native button component"
**Output:** Complete `Button.tsx` with variants, loading state, and styles.
This skill generates ready-to-use React Native components in TypeScript, complete with StyleSheet-based styling and optional platform-specific branches. It produces a single .tsx file that follows React Native 0.72+ and TypeScript conventions. The output is focused on practical, production-ready patterns like typed props, variants, and loading/error states.
When triggered, the skill creates a complete component file (.tsx) that includes imports, typed prop definitions, default props, styles using StyleSheet, and platform-specific conditional code where appropriate. It can produce common component patterns (buttons, inputs, screens) with variants, accessibility attributes, and basic unit of styling ready to drop into a project. The generated code aims to be minimal, readable, and easily customizable.
What file format and React Native version does this target?
It generates .tsx files targeting React Native 0.72+ and TypeScript projects.
Does it include app-wide theming or only component-level styles?
It generates component-level StyleSheet styles; migrating shared values into a theme file is recommended for consistency.