react-native-best-practices

Optimize React Native app performance across JavaScript, native code, and bundling.

Updated Jan 17, 2025
One-click install
npx skills add https://github.com/AlanCasal/pokemon-flashlist-swipe --skill react-native-best-practices-alancasal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-native-best-practices
Source: https://github.com/AlanCasal/pokemon-flashlist-swipe/tree/main/.github/skills/react-native-best-practices
Command: npx skills add https://github.com/AlanCasal/pokemon-flashlist-swipe --skill react-native-best-practices-alancasal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses performance bottlenecks in React Native applications, including slow UI, janky animations, large bundle sizes, and memory leaks.

Core Features & Use Cases

  • Performance Profiling: Guides users on how to measure FPS, analyze bundle size, and profile native code.
  • Optimization Strategies: Provides actionable steps for improving TTI, reducing re-renders, and managing memory.
  • Use Case: A developer notices their app's list scrolling is choppy. They can use this Skill to learn about FlatList and FlashList, analyze the performance impact, and implement the recommended solution.

Quick Start

Use the react-native-best-practices skill to analyze the JavaScript bundle size of the application.

Frequently Asked Questions about react-native-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix choppy list scrolling and frame drops in React Native?

Reduce frame drops in React Native by profiling native code to measure FPS, optimizing list rendering with FlatList or FlashList, and minimizing re-renders to improve scroll performance and UI smoothness.

What's the best way to reduce React Native app startup time and bundle size?

Reduce React Native startup time and bundle size by analyzing the JavaScript bundle, applying optimization strategies to improve Time to Interactive (TTI), and removing excessive memory usage that bloats the application.

How do I profile and debug memory leaks in a React Native application?

Profile and debug React Native memory leaks by using profiling and analysis tool commands to measure memory usage, identifying excessive memory consumption, and applying optimization strategies to manage memory and prevent leaks.

Does this React Native optimization guidance apply to Expo projects?

Yes, the React Native performance optimization guidelines apply to Expo projects, providing strategies for profiling JavaScript, tuning native code, and reducing bundle size to resolve janky animations and slow UI issues.

When should I profile native code instead of JavaScript for React Native performance tuning?

Profile native code instead of JavaScript when frame drops or slow animations persist after JavaScript optimizations, using native profiling tools to identify bottlenecks in the native rendering layer of your React Native app.