New advertisers: 50% off your first month with code FIRSTMONTHSee slots
secondsky avatar

react-native-skills

React Native and Expo performance rules, grouped by impact, that Claude applies when building mobile components.

version
3.12.0
GitHub stars
250
View on GitHub

What it does

  • Adds one react-native-skills skill with 35 rules across 14 categories, ordered from critical list performance down to low-priority font setup
  • Covers list virtualization with FlashList, GPU-accelerated Reanimated animations, native navigators, expo-image, and Pressable-based UI patterns
  • Guides state handling with minimized subscriptions, dispatcher callbacks, and React Compiler-safe shared values and function destructuring
  • Designed for developers building React Native or Expo apps who need performance fixes for scrolling, animation, or native module work

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules.

Add marketplace

/plugin marketplace add secondsky/claude-skills

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install react-native-skills@claude-skills

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

React Native Skills

Comprehensive best practices for React Native and Expo applications. Contains rules across multiple categories covering performance, animations, UI patterns, and platform-specific optimizations.

When to Apply

Reference these guidelines when:

  • Building React Native or Expo apps
  • Optimizing list and scroll performance
  • Implementing animations with Reanimated
  • Working with images and media
  • Configuring native modules or fonts
  • Structuring monorepo projects with native dependencies

Rule Categories by Priority

PriorityCategoryImpactPrefix
1List PerformanceCRITICALlist-performance-
2AnimationHIGHanimation-
3NavigationHIGHnavigation-
4UI PatternsHIGHui-
5State ManagementMEDIUMreact-state-
6RenderingMEDIUMrendering-
7MonorepoMEDIUMmonorepo-
8ConfigurationLOWfonts-, imports-

Quick Reference

1. List Performance (CRITICAL)

  • list-performance-virtualize - Use FlashList for large lists
  • list-performance-item-memo - Memoize list item components
  • list-performance-callbacks - Stabilize callback references
  • list-performance-inline-objects - Avoid inline style objects
  • list-performance-function-references - Extract functions outside render
  • list-performance-images - Optimize images in lists
  • list-performance-item-expensive - Move expensive work outside items
  • list-performance-item-types - Use item types for heterogeneous lists

2. Animation (HIGH)

  • animation-gpu-properties - Animate only transform and opacity
  • animation-derived-value - Use useDerivedValue for computed animations
  • animation-gesture-detector-press - Use Gesture.Tap instead of Pressable

3. Navigation (HIGH)

  • navigation-native-navigators - Use native stack and native tabs over JS navigators

4. UI Patterns (HIGH)

  • ui-expo-image - Use expo-image for all images
  • ui-image-gallery - Use Galeria for image lightboxes
  • ui-pressable - Use Pressable over TouchableOpacity
  • ui-safe-area-scroll - Handle safe areas in ScrollViews
  • ui-scrollview-content-inset - Use contentInset for headers
  • ui-menus - Use native context menus
  • ui-native-modals - Use native modals when possible
  • ui-measure-views - Use onLayout, not measure()
  • ui-styling - Use StyleSheet.create or Nativewind

5. State Management (MEDIUM)

  • react-state-minimize - Minimize state subscriptions
  • react-state-dispatcher - Use dispatcher pattern for callbacks
  • react-state-fallback - Show fallback on first render
  • react-compiler-destructure-functions - Destructure for React Compiler
  • react-compiler-reanimated-shared-values - Handle shared values with compiler

6. Rendering (MEDIUM)

  • rendering-text-in-text-component - Wrap text in Text components
  • rendering-no-falsy-and - Avoid falsy && for conditional rendering

7. Monorepo (MEDIUM)

  • monorepo-native-deps-in-app - Keep native dependencies in app package
  • monorepo-single-dependency-versions - Use single versions across packages

8. Configuration (LOW)

  • fonts-config-plugin - Use config plugins for custom fonts
  • imports-design-system-folder - Organize design system imports
  • js-hoist-intl - Hoist Intl object creation

How to Use

Read individual rule files for detailed explanations and code examples:

rules/list-performance-virtualize.md
rules/animation-gpu-properties.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Readme

React Native Skills Plugin

Version: 1.0.0 Status: Production Ready Source: Based on Vercel Engineering's agent-skills repository License: MIT

Overview

Production-tested React Native and Expo best practices for building performant mobile applications. This plugin provides comprehensive guidelines for optimizing list performance, implementing animations, structuring state management, and working with native platform APIs.

What's Inside

35+ Performance Rules across 14 categories:

CategoryRulesImpactFocus Area
List Performance8 rulesCRITICALFlashList, virtualization, memoization
Animation3 rulesHIGHReanimated, GPU properties, gestures
Navigation1 ruleHIGHNative navigators vs JS navigators
UI Patterns9 rulesHIGHexpo-image, Pressable, safe areas, styling
State Management3 rulesMEDIUMMinimize state, dispatcher pattern, fallbacks
React Compiler2 rulesMEDIUMShared values, function destructuring
Rendering2 rulesMEDIUMText components, conditional rendering
State Architecture1 ruleMEDIUMGround truth patterns
Design System1 ruleMEDIUMCompound components
Monorepo2 rulesLOWNative deps, dependency versions
Third-Party Deps1 ruleLOWDesign system imports
JavaScript1 ruleLOWIntl optimization
Fonts1 ruleLOWConfig plugins

Total: 35 rules organized by impact priority (CRITICAL → LOW)

When to Use This Skill

Claude automatically loads this skill when you're:

  • Building React Native or Expo applications
  • Optimizing list or scroll performance
  • Implementing animations with Reanimated
  • Working with images and media components
  • Configuring native modules or custom fonts
  • Structuring monorepo projects with native dependencies
  • Debugging performance issues in mobile apps
  • Reviewing React Native code for best practices

Installation

Via Claude Code Marketplace

/plugin install react-native-skills@claude-skills

Marketplace Installation

# Add the marketplace once (if not already added)
/plugin marketplace add https://github.com/secondsky/claude-skills

# Install this plugin
/plugin install react-native-skills@claude-skills

Usage Examples

Optimizing List Performance

User: "How do I optimize this FlatList with 10,000 items?"

Claude automatically applies list-performance-virtualize rule and suggests switching to FlashList with proper memoization strategies.

Implementing Smooth Animations

User: "Add a scale animation when user taps this button"

Claude applies animation-gpu-properties and animation-gesture-detector-press rules to use Reanimated with GPU-accelerated transforms.

State Management Review

User: "Review this component's state management"

Claude applies react-state-minimize and react-state-dispatcher rules to identify unnecessary re-renders and optimize state updates.

Structure

react-native-skills/
├── SKILL.md              # Quick reference (~136 lines)
├── AGENTS.md             # Full compiled guide (~2000 lines)
├── README.md             # Internal documentation
├── metadata.json         # Version, organization, abstract
└── rules/                # 38 individual rule files
    ├── _sections.md      # Section metadata
    ├── _template.md      # Template for new rules
    └── *.md              # Individual rules organized by prefix

Progressive Disclosure

  1. SKILL.md: Quick reference with rule summaries
  2. AGENTS.md: Full guide with detailed examples
  3. rules/: Individual files for targeted learning

Rule Categories

Critical Priority

List Performance (8 rules):

  • Virtualization with FlashList
  • Item memoization strategies
  • Callback stabilization
  • Inline object avoidance
  • Image optimization in lists
  • Expensive computation handling
  • Heterogeneous list types

High Priority

Animation (3 rules):

  • GPU-accelerated properties (transform, opacity)
  • useDerivedValue patterns
  • GestureDetector for press animations

Navigation (1 rule):

  • Native stack and tabs over JS navigators

UI Patterns (9 rules):

  • expo-image for all images
  • Galeria for lightboxes
  • Pressable over TouchableOpacity
  • Safe area handling
  • Native modals and menus
  • View measurement patterns
  • Modern styling (gap, boxShadow, gradients)

Medium Priority

State Management (3 rules):

  • Minimize state subscriptions
  • Dispatcher pattern for callbacks
  • Fallback rendering strategies

React Compiler (2 rules):

  • Function destructuring
  • Shared value handling

Rendering (2 rules):

  • Text component wrapping
  • Conditional rendering patterns

Low Priority

Monorepo (2 rules):

  • Native dependency location
  • Dependency version management

Configuration (3 rules):

  • Custom fonts via config plugins
  • Design system imports
  • Intl optimization

Key Technologies

  • React Native - Core mobile framework
  • Expo - Development platform
  • FlashList - High-performance lists
  • Reanimated - GPU-accelerated animations
  • React Navigation - Native navigators
  • expo-image - Optimized image component
  • Galeria - Image lightbox
  • Zeego - Native menus

Attribution

This skill is based on the excellent work by Vercel Engineering in their agent-skills repository. Content has been adapted for the Claude Code skills format while preserving the high-quality guidelines and examples.

Original Author: Vercel Engineering Adapted By: Claude Skills Maintainers License: MIT (matching original)

Related Skills

  • react-best-practices - Web-focused React patterns
  • tailwind-v4-shadcn - UI component styling
  • tanstack-query - Data fetching patterns
  • zustand-state-management - State management library

References

Version History

1.0.0 (January 2026)

  • Initial release
  • 35+ rules across 14 categories
  • Progressive disclosure structure
  • Based on Vercel agent-skills v1.0.0

Support

Issues: https://github.com/secondsky/claude-skills/issues Discussions: https://github.com/secondsky/claude-skills/discussions Email: maintainers@example.com

Contributing

Contributions welcome! Please:

  1. Follow the rule template in rules/_template.md
  2. Use appropriate prefix for rule category
  3. Include incorrect/correct examples
  4. Add impact level and description
  5. Submit PR with clear description

See CONTRIBUTING.md for full guidelines.

Details

Marketplace
secondsky/claude-skills
Source
plugins/react-native-skills
Category
Frontend
Keywords
react-native-skills, react, native, skills, frontend, components
Listed since
Apr 7, 2026

More from secondsky/claude-skills

All 122

Similar to react-native-skills

More Mobile Apps