react-native-best-practices

Identify performance bottlenecks in React Native apps and provide optimization guidance.

23|2|Updated Dec 5, 2024
One-click install
npx skills add https://github.com/SovranBitcoin/Sovran --skill react-native-best-practices-sovranbitcoin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-native-best-practices
Source: https://github.com/SovranBitcoin/Sovran/tree/main/.agents/skills/react-native-best-practices
Command: npx skills add https://github.com/SovranBitcoin/Sovran --skill react-native-best-practices-sovranbitcoin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Performance optimization patterns and references for React Native apps to reduce jank, improve FPS, TTI, and bundle size.

Core Features & Use Cases

  • Consolidated best practices for FPS, TTI, memory leaks, re-renders, and animations
  • Guidance for profiling, native module optimization, and bundle analysis
  • Real-world scenarios across Hermes, bridging, and FlashList optimizations

Quick Start

Review the references and implement foundational optimizations, then profile and iteratively refine performance.

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 React Native FPS drops and UI jank?

Fix React Native FPS drops by profiling render performance to identify bottlenecks and applying targeted optimization patterns to reduce UI jank. Consolidated references guide iterative refinement for smoother animations.

What is the best way to reduce React Native startup time and improve TTI?

Reduce React Native startup time by analyzing large JS bundles and applying optimization patterns to improve Time to Interactive (TTI). Guidance covers bundle analysis and Hermes engine configurations for faster launches.

How do I profile memory leaks in React Native apps on iOS and Android?

Profile memory leaks in React Native apps using cross-platform profiling patterns for iOS and Android. Identify native module and bridging inefficiencies, then apply targeted code patterns to resolve memory retention.

Can I optimize React Native bundle size by configuring Hermes and FlashList?

Yes, you can optimize React Native bundle size and render performance by configuring Hermes and FlashList. Real-world scenarios provide targeted guidance for bridging optimizations and efficient list rendering.

Why does my React Native app have slow rendering despite code splitting?

Slow rendering in React Native despite code splitting often stems from excessive re-renders or native bridging overhead. Profile render cycles and apply targeted code patterns to eliminate unnecessary computations.

Do I need profiling tools to address React Native performance bottlenecks?

Yes, profiling tools are required to accurately identify React Native performance bottlenecks. Apply profiling patterns to measure FPS, TTI, and memory usage before iteratively refining code patterns for measurable improvements.