react-native-best-practices

Analyze React Native bundle size and optimize FPS, TTI, and memory leaks.

7|2|Updated May 11, 2023
One-click install
npx skills add https://github.com/vitalyiegorov/suuudokuuu --skill react-native-best-practices-vitalyiegorov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-native-best-practices
Source: https://github.com/vitalyiegorov/suuudokuuu/tree/main/.agents/skills/react-native-best-practices
Command: npx skills add https://github.com/vitalyiegorov/suuudokuuu --skill react-native-best-practices-vitalyiegorov

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines and actionable steps to optimize React Native applications, ensuring smooth performance, fast load times, and efficient resource usage.

Core Features & Use Cases

  • Performance Optimization: Covers FPS, TTI, bundle size, memory leaks, re-renders, and animations.
  • Debugging Tools: Offers commands and references for profiling JS/Native threads, analyzing bundles, and identifying bottlenecks.
  • Use Case: When your React Native app experiences janky scrolling or slow startup, this Skill provides the exact steps to diagnose and fix the underlying performance issues, from optimizing lists with FlashList to reducing bundle size with tree shaking.

Quick Start

Analyze the JavaScript bundle size of the current project to identify large dependencies.

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 janky scrolling and frame drops in my React Native app?

To fix React Native jank and frame drops, profile JS and native threads to identify bottlenecks, optimize lists with FlashList, and resolve JS thread blocking. This provides exact steps to diagnose and repair scrolling performance issues.

What's the best way to reduce React Native bundle size?

The best way to reduce React Native bundle size is analyzing the JavaScript bundle to identify large dependencies and applying tree shaking. This diagnostic approach isolates heavy libraries for removal or replacement to shrink the output.

How does profiling work for React Native performance optimization?

Profiling for React Native optimization works by measuring FPS, TTI, and memory leaks across JS and native code. It uses specialized debugging tools to analyze thread execution and bridge overhead, pinpointing exact functions causing slowdowns.

Can I use FlashList to optimize list rendering in React Native?

Yes, you can use FlashList to optimize list rendering in React Native. It replaces standard lists to reduce re-renders and improve scrolling performance, directly addressing frame drops and jank during heavy list interactions.

Why does my React Native app have a slow startup time?

React Native slow startup time is caused by large bundle sizes, bridge overhead, and unoptimized Hermes execution. Profiling TTI and analyzing bundle dependencies identifies the specific heavy modules delaying the initial load.

When should I optimize Hermes and native modules for React Native?

You should optimize Hermes and native modules when profiling reveals JS thread blocking or excessive bridge overhead. Addressing these specific native code bottlenecks reduces memory leaks and stabilizes animations during complex app interactions.