360 Secure SkillHub
360 安全技能中心

expo-react-native-performance

为编写、审查和重构 Expo React Native 代码提供按影响排序的 42 条性能优化规则,覆盖启动与包体、列表虚拟化、重渲染、动画、图片资源、内存、异步请求和平台优化。

分类:开发
pproenca
热度 0.00
最近更新 2026-10-21 02:07:23

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add pproenca/dot-skills/expo-react-native-performance
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
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

Priority Category Impact Prefix
1 App Startup & Bundle Size CRITICAL startup-
2 List Virtualization CRITICAL list-
3 Re-render Optimization HIGH rerender-
4 Animation Performance HIGH anim-
5 Image & Asset Loading MEDIUM-HIGH asset-
6 Memory Management MEDIUM mem-
7 Async & Data Fetching MEDIUM async-
8 Platform Optimizations LOW-MEDIUM platform-

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

File Description
AGENTS.md Complete compiled guide with all rules
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information