gabelul/stitch-kit / skills/stitch-react-native-components
stitch-react-native-components
VerifiedConverts a Stitch mobile screen, a local HTML file, or a URL into React Native / Expo components — TypeScript, StyleSheet, Expo Router, dark mode via useColorScheme, and proper touch targets. Cross-platform iOS and Android. Only the Stitch route needs an API key.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.6 KB |
| resources/architecture-checklist.md | markdown | 3.4 KB |
| resources/component-template.tsx | other | 2.6 KB |
| scripts/fetch-stitch.sh | script | 1.3 KB |
resources/component-template.tsx
View on GitHub/**
* StitchComponent.tsx
*
* Generated from Stitch design via stitch-react-native-components skill.
* Replace "StitchComponent" with the actual component name throughout.
*
* File location: src/components/StitchComponent.tsx
*/
import { StyleSheet, Text, Pressable, View } from 'react-native'
import { useTheme } from '@/theme/useTheme'
// ------------------------------------------------------------
// Types
// ------------------------------------------------------------
/**
* Props for StitchComponent.
* All data via props — never fetched inside the component.
*/
interface StitchComponentProps {
/** Primary heading text */
title: string
/** Supporting description text — optional */
description?: string
/** Callback when the component is pressed */
onPress?: () => void
}
// ------------------------------------------------------------
// Component
// ------------------------------------------------------------
/**
* StitchComponent — [describe purpose in one sentence]
*/
export function StitchComponent({
title,
description,
onPress,
}: Readonly<StitchComponentProps>) {
const theme = useTheme()
return (
<Pressable
// Visual press feedback via the style callback
style={({ pressed }) => [
styles.container,
{
backgroundColor: theme.surface,
borderColor: theme.border,
opacity: pressed ? 0.8 : 1,
},
]}
onPress={onPress}
// Accessibility — required for screen readers
accessible={true}
accessibilityRole="button"
accessibilityLabel={title}
// Extend tap area without changing visual size
hitSlop={8}
>
{/* Title */}
<Text style={[styles.title, { color: theme.text }]}>
{title}
</Text>
{/* Description — only render when provided */}
{description ? (
<Text style={[styles.description, { color: theme.textMuted }]}>
{description}
</Text>
) : null}
</Pressable>
)
}
// ------------------------------------------------------------
// Styles
// ------------------------------------------------------------
/**
* StyleSheet.create hoists styles outside the render function.
* Dynamic values (from theme) go inline — static values go here.
*/
const styles = StyleSheet.create({
container: {
borderRadius: 12,
borderWidth: 1,
padding: 16,
gap: 8,
// Apple HIG / Material minimum touch target
minHeight: 44,
},
title: {
fontSize: 16,
fontWeight: '600',
lineHeight: 24,
},
description: {
fontSize: 14,
lineHeight: 20,
},
})
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |