Generated banner for React Native Design
Generated logo for React Native Design

React Native Design

Seth HobsonCommunityCreated by Seth Hobson

  • Skill
  • Tool integration
  • Software development
  • MIT
  • No issues found

From the author

Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.
— the description by Seth Hobson

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

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/wshobson/react-native-design/download
  2. Unzip 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

  1. Use TypeScript: Define navigation and prop types for type safety

  2. Memoize Components: Use React.memo and useCallback to prevent unnecessary rerenders

  3. Run Animations on UI Thread: Use Reanimated worklets for 60fps animations

  4. Avoid Inline Styles: Use StyleSheet.create for performance

  5. Handle Safe Areas: Use SafeAreaView or useSafeAreaInsets

  6. Test on Real Devices: Simulator/emulator performance differs from real devices

  7. Use FlatList for Lists: Never use ScrollView with map for long lists

  8. Platform-Specific Code: Use Platform.select for iOS/Android differences

Common Issues

  • Gesture Conflicts: Wrap gestures with GestureDetector and use simultaneousHandlers

  • Navigation Type Errors: Define ParamList types for all navigators

  • Animation Jank: Move animations to UI thread with runOnUI worklets

  • Memory Leaks: Cancel animations and cleanup in useEffect

  • Font Loading: Use expo-font or react-native-asset for custom fonts

  • Safe Area Issues: Test on notched devices (iPhone, Android with cutouts)

Files

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.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download react-native-design.zip