React Native Design
Seth HobsonCommunityCreated by Seth Hobson
- Skill
- Tool integration
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides patterns and reference material for developing cross-platform mobile applications using React Native. It covers styling with StyleSheet, implementing navigation structures with React Navigation, and creating animations using Reanimated 3. The content includes code examples for common UI components, navigation configurations, and layout techniques, alongside best practices for maintaining type safety and component structure.
What it does
- Provides patterns for styling components using StyleSheet and dynamic style objects.
- Demonstrates how to configure Stack and Tab navigators with React Navigation.
- Offers examples for creating animations using Reanimated 3 shared values and worklets.
- Includes guidance on implementing responsive Flexbox layouts.
- Outlines best practices for TypeScript integration and component memoization.
- Provides solutions for common issues like gesture conflicts and navigation type errors.
When to use it
- When building cross-platform mobile applications with React Native.
- When setting up navigation flows using React Navigation 6+.
- When creating animations using the Reanimated 3 library.
- When defining responsive layouts and styling components.
- When implementing platform-specific design adjustments for iOS and Android.
Advantages
- Centralizes patterns for styling, navigation, and animation in one reference.
- Includes type-safe navigation configuration examples.
- Provides reusable code snippets for common UI elements.
- Offers clear guidance on handling platform-specific differences.
Usage examples
- “How do I set up a basic Stack Navigator in React Native?”
- The skill provides a code example using createNativeStackNavigator, including the definition of a RootStackParamList for type safety and screen configuration.
- “Show me how to create a dynamic style for a card component.”
- The skill provides a pattern for passing props to a component to conditionally apply styles from a StyleSheet object.
- “How can I animate a button press using Reanimated?”
- The skill provides a code snippet demonstrating the use of useSharedValue, useAnimatedStyle, and withSpring to animate a component scale on press.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/wshobson/react-native-design/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip react-native-design.zip -d .agents/skills
Documentation by Seth Hobson
React Native Design
Master React Native styling patterns, React Navigation, and Reanimated 3 to build performant, cross-platform mobile applications with native-quality user experiences.
When to Use This Skill
Building cross-platform mobile apps with React Native
Implementing navigation with React Navigation 6+
Creating performant animations with Reanimated 3
Styling components with StyleSheet and styled-components
Building responsive layouts for different screen sizes
Implementing platform-specific designs (iOS/Android)
Creating gesture-driven interactions with Gesture Handler
Optimizing React Native performance
Detailed section: Core Concepts
Originally a 6471-byte section in this SKILL.md. Moved to references/details.md to fit Codex's 8 KB skill body cap.
Quick Start Component
import React from 'react';
import {
View,
Text,
StyleSheet,
Pressable,
Image,
} from 'react-native';
import Animated, {
useSharedValue,
useAnimatedStyle,
withSpring,
} from 'react-native-reanimated';
interface ItemCardProps {
title: string;
subtitle: string;
imageUrl: string;
onPress: () => void;
}
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
export function ItemCard({ title, subtitle, imageUrl, onPress }: ItemCardProps) {
const scale = useSharedValue(1);
const animatedStyle = useAnimatedStyle(() => ({
transform: [{ scale: scale.value }],
}));
return (
<AnimatedPressable
style={[styles.card, animatedStyle]}
onPress={onPress}
onPressIn={() => { scale.value = withSpring(0.97); }}
onPressOut={() => { scale.value = withSpring(1); }}
>
<Image source={{ uri: imageUrl }} style={styles.image} />
<View style={styles.content}>
<Text style={styles.title} numberOfLines={1}>
{title}
</Text>
<Text style={styles.subtitle} numberOfLines={2}>
{subtitle}
</Text>
</View>
</AnimatedPressable>
);
}
const styles = StyleSheet.create({
card: {
backgroundColor: '#ffffff',
borderRadius: 16,
overflow: 'hidden',
shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.1,
shadowRadius: 8,
elevation: 4,
},
image: {
width: '100%',
height: 160,
backgroundColor: '#f3f4f6',
},
content: {
padding: 16,
gap: 4,
},
title: {
fontSize: 18,
fontWeight: '600',
color: '#1f2937',
},
subtitle: {
fontSize: 14,
color: '#6b7280',
lineHeight: 20,
},
});Best Practices
Use TypeScript: Define navigation and prop types for type safety
Memoize Components: Use
React.memoanduseCallbackto prevent unnecessary rerendersRun Animations on UI Thread: Use Reanimated worklets for 60fps animations
Avoid Inline Styles: Use StyleSheet.create for performance
Handle Safe Areas: Use
SafeAreaVieworuseSafeAreaInsetsTest on Real Devices: Simulator/emulator performance differs from real devices
Use FlatList for Lists: Never use ScrollView with map for long lists
Platform-Specific Code: Use Platform.select for iOS/Android differences
Common Issues
Gesture Conflicts: Wrap gestures with
GestureDetectorand usesimultaneousHandlersNavigation Type Errors: Define
ParamListtypes for all navigatorsAnimation Jank: Move animations to UI thread with
runOnUIworkletsMemory Leaks: Cancel animations and cleanup in useEffect
Font Loading: Use
expo-fontorreact-native-assetfor custom fontsSafe Area Issues: Test on notched devices (iPhone, Android with cutouts)
Files
- ATTRIBUTION.mdAdded by AutoGineer975 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md3.9 KiB
- references/details.md6.4 KiB
- references/navigation-patterns.md19.7 KiB
- references/reanimated-patterns.md17.0 KiB
- references/styling-patterns.md18.4 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Seth Hobson
- Publisher
- Seth Hobson (Community)
- Source
- wshobson/agents · plugins/ui-design/skills/react-native-design · commit 4bde316
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Seth Hobson or Seth Hobson.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download react-native-design.zip