PluginBench
Skill
Review
Audit score 70

expo-react-native-performance

pproenca/dot-skills

42 performance optimization rules for Expo React Native apps, organized by impact.

What is expo-react-native-performance?

Comprehensive guide for optimizing Expo React Native applications across startup time, list rendering, re-renders, animations, images, memory, async operations, and platform-specific concerns. Use when writing, reviewing, or refactoring React Native code to apply proven performance patterns.

  • Provides 42 prioritized rules across 8 performance categories (startup, lists, re-renders, animations, images, memory, async, platform)
  • Guides optimization of app startup time and bundle size with Hermes and code splitting
  • Improves list performance via FlashList, virtualization, and memoization techniques
  • Reduces unnecessary re-renders through memo, useCallback, and context splitting
  • Optimizes animations with native drivers and Reanimated library
  • Enhances image loading with expo-image, prefetching, and WebP format

How to install expo-react-native-performance

npx skills add https://github.com/pproenca/dot-skills --skill expo-react-native-performance
Claude Code
Cursor
Windsurf
Cline

How to use expo-react-native-performance

  1. 1.Identify the performance category relevant to your task (startup, lists, re-renders, animations, images, memory, async, or platform)
  2. 2.Review the specific rule references in that category for detailed explanations and code examples
  3. 3.Apply the recommended pattern to your code, prioritizing CRITICAL and HIGH impact rules first
  4. 4.Reference the full AGENTS.md document for complete rule definitions and additional context

Use cases

Good for
  • Refactoring a slow-scrolling FlatList to use FlashList with proper memoization and estimatedItemSize
  • Reducing app startup time by enabling Hermes engine and implementing code splitting with async routes
  • Optimizing animation performance in a complex UI by switching to native drivers or Reanimated
  • Improving image loading performance by prefetching assets and converting to WebP format
  • Reviewing code for memory leaks from uncleared subscriptions and timers before production release
Who it's for
  • React Native developers building Expo apps
  • Mobile engineers optimizing app performance and startup time
  • Code reviewers ensuring performance best practices are followed
  • Teams migrating from FlatList to FlashList or implementing complex animations

expo-react-native-performance FAQ

What is the difference between CRITICAL and HIGH priority rules?

CRITICAL rules (startup and list virtualization) have the most significant impact on app performance and should be applied first. HIGH priority rules (re-renders and animations) provide substantial improvements but may require more refactoring effort.

Should I use FlashList or FlatList?

Use FlashList instead of FlatList for better performance, especially with large lists. Provide accurate estimatedItemSize and use getItemType for mixed-type lists.

How do I reduce app startup time?

Enable the Hermes JavaScript engine, remove console logs in production, implement code splitting with async routes, cherry-pick imports instead of using barrel files, and preload critical assets during the splash screen.

What should I do about animations causing jank?

Enable the native driver for Animated API, use Reanimated for complex animations, animate transform properties instead of dimensions, and defer heavy work during animations using InteractionManager.

How do I prevent memory leaks in React Native?

Clean up subscriptions, clear timers, and abort fetch requests in useEffect cleanup functions. Avoid inline objects in props and limit list data held in memory.

Full instructions (SKILL.md)

Source of truth, from pproenca/dot-skills.


name: expo-react-native-performance description: Expo React Native performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring Expo React Native code to ensure optimal performance patterns. Triggers on tasks involving React Native components, lists, animations, images, or performance improvements.

Expo React Native Performance Best Practices

Comprehensive performance optimization guide for Expo React Native applications. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new React Native components or screens
  • Implementing lists with FlatList or FlashList
  • Adding animations or transitions
  • Optimizing images and asset loading
  • Reviewing code for performance issues

Rule Categories by Priority

PriorityCategoryImpactPrefix
1App Startup & Bundle SizeCRITICALstartup-
2List VirtualizationCRITICALlist-
3Re-render OptimizationHIGHrerender-
4Animation PerformanceHIGHanim-
5Image & Asset LoadingMEDIUM-HIGHasset-
6Memory ManagementMEDIUMmem-
7Async & Data FetchingMEDIUMasync-
8Platform OptimizationsLOW-MEDIUMplatform-

Quick Reference

1. App Startup & Bundle Size (CRITICAL)

2. List Virtualization (CRITICAL)

3. Re-render Optimization (HIGH)

4. Animation Performance (HIGH)

5. Image & Asset Loading (MEDIUM-HIGH)

6. Memory Management (MEDIUM)

7. Async & Data Fetching (MEDIUM)

8. Platform Optimizations (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For the complete guide with all rules expanded, see AGENTS.md.

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Related skills

More from pproenca/dot-skills and the wider catalog.

FRframer-motion logo

framer-motion

pproenca/dot-skills

Framer Motion performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring React animations with Framer Motion to ensure optimal performance patterns. Triggers on tasks involving motion components, animations, gestures, layout transitions, scroll-linked effects, and SVG animations.

771 installs
NUnuqs logo

nuqs

pproenca/dot-skills

Type-safe URL query state management best practices for Next.js and React frameworks.

2.0k installsAudited
REreact-hook-form logo

react-hook-form

pproenca/dot-skills

React Hook Form performance optimization guide with 35 best-practice rules across form configuration, subscriptions, and validation.

2.8k installs
REreact-refactor logo

react-refactor

pproenca/dot-skills

Architectural refactoring guide for React applications covering component architecture, state architecture, hook patterns, component decomposition, coupling and cohesion, data flow, and refactoring safety. Use when refactoring React codebases, reviewing PRs for architectural issues, decomposing oversized components, or improving module boundaries. Does NOT cover React 19 API usage (see react skill) or performance optimization (see react-optimise skill).

609 installs
SHshadcn logo

shadcn

pproenca/dot-skills

shadcn/ui component library best practices and patterns (formerly shadcn-ui). This skill should be used when writing, reviewing, or refactoring shadcn/ui components to ensure proper architecture, accessibility, and performance. Triggers on tasks involving Radix primitives, Tailwind styling, form validation with React Hook Form, data tables, theming, or component composition patterns.

622 installs
TEterminal-ui logo

terminal-ui

pproenca/dot-skills

Terminal User Interface (TUI) performance and UX guidelines for TypeScript applications using Ink and Clack. This skill should be used when building CLI tools, interactive terminal prompts, or developer tooling with TUI components. Triggers on tasks involving TUI components, CLI prompts, terminal rendering, keyboard input handling, or developer tooling.

636 installs