[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74XBEZ2FPP87Q4MSD4W5685":3,"skill-same:01M74XBEZ2FPP87Q4MSD4W5685":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M74XBEZ2FPP87Q4MSD4W5685","react-native-best-practices",null,"Provides React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations. Applies to tasks involving Hermes optimization, JS thread blocking, bridge overhead, FlashList, native modules, or debugging jank and frame drops.","roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade","roman-ryzenadvanced","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F239662551?v=4","01M74W4V145ZM75RFTGXF80YQS","Roman | RyzenAdvanced","01M74W4V1TY266Y791RQEN44JF",0,"MIT","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Freact-native-best-practices\u002Fskill.md",[],[],"2026-11-12 13:55:43",false,"---\nname: react-native-best-practices\ndescription: Provides React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations. Applies to tasks involving Hermes optimization, JS thread blocking, bridge overhead, FlashList, native modules, or debugging jank and frame drops.\nlicense: MIT\nmetadata:\n  author: Callstack\n  tags: react-native, expo, performance, optimization, profiling\n---\n\n# React Native Best Practices\n\n## Overview\n\nPerformance optimization guide for React Native applications, covering JavaScript\u002FReact, Native (iOS\u002FAndroid), and bundling optimizations. Based on Callstack's \"Ultimate Guide to React Native Optimization\".\n\n## Skill Format\n\nEach reference file follows a hybrid format for fast lookup and deep understanding:\n\n- **Quick Pattern**: Incorrect\u002FCorrect code snippets for immediate pattern matching\n- **Quick Command**: Shell commands for process\u002Fmeasurement skills\n- **Quick Config**: Configuration snippets for setup-focused skills\n- **Quick Reference**: Summary tables for conceptual skills\n- **Deep Dive**: Full context with When to Use, Prerequisites, Step-by-Step, Common Pitfalls\n\n**Impact ratings**: CRITICAL (fix immediately), HIGH (significant improvement), MEDIUM (worthwhile optimization)\n\n## When to Apply\n\nReference these guidelines when:\n- Debugging slow\u002Fjanky UI or animations\n- Investigating memory leaks (JS or native)\n- Optimizing app startup time (TTI)\n- Reducing bundle or app size\n- Writing native modules (Turbo Modules)\n- Profiling React Native performance\n- Reviewing React Native code for performance\n\n## Priority-Ordered Guidelines\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | FPS & Re-renders | CRITICAL | `js-*` |\n| 2 | Bundle Size | CRITICAL | `bundle-*` |\n| 3 | TTI Optimization | HIGH | `native-*`, `bundle-*` |\n| 4 | Native Performance | HIGH | `native-*` |\n| 5 | Memory Management | MEDIUM-HIGH | `js-*`, `native-*` |\n| 6 | Animations | MEDIUM | `js-*` |\n\n## Quick Reference\n\n### Critical: FPS & Re-renders\n\n**Profile first:**\n```bash\n# Open React Native DevTools\n# Press 'j' in Metro, or shake device → \"Open DevTools\"\n```\n\n**Common fixes:**\n- Replace ScrollView with FlatList\u002FFlashList for lists\n- Use React Compiler for automatic memoization\n- Use atomic state (Jotai\u002FZustand) to reduce re-renders\n- Use `useDeferredValue` for expensive computations\n\n### Critical: Bundle Size\n\n**Analyze bundle:**\n```bash\nnpx react-native bundle \\\n  --entry-file index.js \\\n  --bundle-output output.js \\\n  --platform ios \\\n  --sourcemap-output output.js.map \\\n  --dev false --minify true\n\nnpx source-map-explorer output.js --no-border-checks\n```\n\n**Common fixes:**\n- Avoid barrel imports (import directly from source)\n- Remove unnecessary Intl polyfills (Hermes has native support)\n- Enable tree shaking (Expo SDK 52+ or Re.Pack)\n- Enable R8 for Android native code shrinking\n\n### High: TTI Optimization\n\n**Measure TTI:**\n- Use `react-native-performance` for markers\n- Only measure cold starts (exclude warm\u002Fhot\u002Fprewarm)\n\n**Common fixes:**\n- Disable JS bundle compression on Android (enables Hermes mmap)\n- Use native navigation (react-native-screens)\n- Defer non-critical work with `InteractionManager`\n\n### High: Native Performance\n\n**Profile native:**\n- iOS: Xcode Instruments → Time Profiler\n- Android: Android Studio → CPU Profiler\n\n**Common fixes:**\n- Use background threads for heavy native work\n- Prefer async over sync Turbo Module methods\n- Use C++ for cross-platform performance-critical code\n\n## References\n\nFull documentation with code examples in `references\u002F`:\n\n### JavaScript\u002FReact (`js-*`)\n\n| File | Impact | Description |\n|------|--------|-------------|\n| `js-lists-flatlist-flashlist.md` | CRITICAL | Replace ScrollView with virtualized lists |\n| `js-profile-react.md` | MEDIUM | React DevTools profiling |\n| `js-measure-fps.md` | HIGH | FPS monitoring and measurement |\n| `js-memory-leaks.md` | MEDIUM | JS memory leak hunting |\n| `js-atomic-state.md` | HIGH | Jotai\u002FZustand patterns |\n| `js-concurrent-react.md` | HIGH | useDeferredValue, useTransition |\n| `js-react-compiler.md` | HIGH | Automatic memoization |\n| `js-animations-reanimated.md` | MEDIUM | Reanimated worklets |\n| `js-uncontrolled-components.md` | HIGH | TextInput optimization |\n\n### Native (`native-*`)\n\n| File | Impact | Description |\n|------|--------|-------------|\n| `native-turbo-modules.md` | HIGH | Building fast native modules |\n| `native-sdks-over-polyfills.md` | HIGH | Native vs JS libraries |\n| `native-measure-tti.md` | HIGH | TTI measurement setup |\n| `native-threading-model.md` | HIGH | Turbo Module threads |\n| `native-profiling.md` | MEDIUM | Xcode\u002FAndroid Studio profiling |\n| `native-platform-setup.md` | MEDIUM | iOS\u002FAndroid tooling guide |\n| `native-view-flattening.md` | MEDIUM | View hierarchy debugging |\n| `native-memory-patterns.md` | MEDIUM | C++\u002FSwift\u002FKotlin memory |\n| `native-memory-leaks.md` | MEDIUM | Native memory leak hunting |\n| `native-android-16kb-alignment.md` | CRITICAL | Third-party library alignment for Google Play |\n\n### Bundling (`bundle-*`)\n\n| File | Impact | Description |\n|------|--------|-------------|\n| `bundle-barrel-exports.md` | CRITICAL | Avoid barrel imports |\n| `bundle-analyze-js.md` | CRITICAL | JS bundle visualization |\n| `bundle-tree-shaking.md` | HIGH | Dead code elimination |\n| `bundle-analyze-app.md` | HIGH | App size analysis |\n| `bundle-r8-android.md` | HIGH | Android code shrinking |\n| `bundle-hermes-mmap.md` | HIGH | Disable bundle compression |\n| `bundle-native-assets.md` | HIGH | Asset catalog setup |\n| `bundle-library-size.md` | MEDIUM | Evaluate dependencies |\n| `bundle-code-splitting.md` | MEDIUM | Re.Pack code splitting |\n\n## Searching References\n\n```bash\n# Find patterns by keyword\ngrep -l \"reanimated\" references\u002F\ngrep -l \"flatlist\" references\u002F\ngrep -l \"memory\" references\u002F\ngrep -l \"profil\" references\u002F\ngrep -l \"tti\" references\u002F\ngrep -l \"bundle\" references\u002F\n```\n\n## Problem → Skill Mapping\n\n| Problem | Start With |\n|---------|------------|\n| App feels slow\u002Fjanky | `js-measure-fps.md` → `js-profile-react.md` |\n| Too many re-renders | `js-profile-react.md` → `js-react-compiler.md` |\n| Slow startup (TTI) | `native-measure-tti.md` → `bundle-analyze-js.md` |\n| Large app size | `bundle-analyze-app.md` → `bundle-r8-android.md` |\n| Memory growing | `js-memory-leaks.md` or `native-memory-leaks.md` |\n| Animation drops frames | `js-animations-reanimated.md` |\n| List scroll jank | `js-lists-flatlist-flashlist.md` |\n| TextInput lag | `js-uncontrolled-components.md` |\n| Native module slow | `native-turbo-modules.md` → `native-threading-model.md` |\n| Native library alignment issue | `native-android-16kb-alignment.md` |\n\n## Attribution\n\nBased on \"The Ultimate Guide to React Native Optimization\" by Callstack.\n","# React Native Best Practices\n\n## Overview\n\nPerformance optimization guide for React Native applications, covering JavaScript\u002FReact, Native (iOS\u002FAndroid), and bundling optimizations. Based on Callstack's \"Ultimate Guide to React Native Optimization\".\n\n## Skill Format\n\nEach reference file follows a hybrid format for fast lookup and deep understanding:\n\n- **Quick Pattern**: Incorrect\u002FCorrect code snippets for immediate pattern matching\n- **Quick Command**: Shell commands for process\u002Fmeasurement skills\n- **Quick Config**: Configuration snippets for setup-focused skills\n- **Quick Reference**: Summary tables for conceptual skills\n- **Deep Dive**: Full context with When to Use, Prerequisites, Step-by-Step, Common Pitfalls\n\n**Impact ratings**: CRITICAL (fix immediately), HIGH (significant improvement), MEDIUM (worthwhile optimization)\n\n## When to Apply\n\nReference these guidelines when:\n- Debugging slow\u002Fjanky UI or animations\n- Investigating memory leaks (JS or native)\n- Optimizing app startup time (TTI)\n- Reducing bundle or app size\n- Writing native modules (Turbo Modules)\n- Profiling React Native performance\n- Reviewing React Native code for performance\n\n## Priority-Ordered Guidelines\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | FPS & Re-renders | CRITICAL | `js-*` |\n| 2 | Bundle Size | CRITICAL | `bundle-*` |\n| 3 | TTI Optimization | HIGH | `native-*`, `bundle-*` |\n| 4 | Native Performance | HIGH | `native-*` |\n| 5 | Memory Management | MEDIUM-HIGH | `js-*`, `native-*` |\n| 6 | Animations | MEDIUM | `js-*` |\n\n## Quick Reference\n\n### Critical: FPS & Re-renders\n\n**Profile first:**\n```bash\n# Open React Native DevTools\n# Press 'j' in Metro, or shake device → \"Open DevTools\"\n```\n\n**Common fixes:**\n- Replace ScrollView with FlatList\u002FFlashList for lists\n- Use React Compiler for automatic memoization\n- Use atomic state (Jotai\u002FZustand) to reduce re-renders\n- Use `useDeferredValue` for expensive computations\n\n### Critical: Bundle Size\n\n**Analyze bundle:**\n```bash\nnpx react-native bundle \\\n  --entry-file index.js \\\n  --bundle-output output.js \\\n  --platform ios \\\n  --sourcemap-output output.js.map \\\n  --dev false --minify true\n\nnpx source-map-explorer output.js --no-border-checks\n```\n\n**Common fixes:**\n- Avoid barrel imports (import directly from source)\n- Remove unnecessary Intl polyfills (Hermes has native support)\n- Enable tree shaking (Expo SDK 52+ or Re.Pack)\n- Enable R8 for Android native code shrinking\n\n### High: TTI Optimization\n\n**Measure TTI:**\n- Use `react-native-performance` for markers\n- Only measure cold starts (exclude warm\u002Fhot\u002Fprewarm)\n\n**Common fixes:**\n- Disable JS bundle compression on Android (enables Hermes mmap)\n- Use native navigation (react-native-screens)\n- Defer non-critical work with `InteractionManager`\n\n### High: Native Performance\n\n**Profile native:**\n- iOS: Xcode Instruments → Time Profiler\n- Android: Android Studio → CPU Profiler\n\n**Common fixes:**\n- Use background threads for heavy native work\n- Prefer async over sync Turbo Module methods\n- Use C++ for cross-platform performance-critical code\n\n## References\n\nFull documentation with code examples in `references\u002F`:\n\n### JavaScript\u002FReact (`js-*`)\n\n| File | Impact | Description |\n|------|--------|-------------|\n| `js-lists-flatlist-flashlist.md` | CRITICAL | Replace ScrollView with virtualized lists |\n| `js-profile-react.md` | MEDIUM | React DevTools profiling |\n| `js-measure-fps.md` | HIGH | FPS monitoring and measurement |\n| `js-memory-leaks.md` | MEDIUM | JS memory leak hunting |\n| `js-atomic-state.md` | HIGH | Jotai\u002FZustand patterns |\n| `js-concurrent-react.md` | HIGH | useDeferredValue, useTransition |\n| `js-react-compiler.md` | HIGH | Automatic memoization |\n| `js-animations-reanimated.md` | MEDIUM | Reanimated worklets |\n| `js-uncontrolled-components.md` | HIGH | TextInput optimization |\n\n### Native (`native-*`)\n\n| File | Impact | Description |\n|------|--------|-------------|\n| `native-turbo-modules.md` | HIGH | Building fast native modules |\n| `native-sdks-over-polyfills.md` | HIGH | Native vs JS libraries |\n| `native-measure-tti.md` | HIGH | TTI measurement setup |\n| `native-threading-model.md` | HIGH | Turbo Module threads |\n| `native-profiling.md` | MEDIUM | Xcode\u002FAndroid Studio profiling |\n| `native-platform-setup.md` | MEDIUM | iOS\u002FAndroid tooling guide |\n| `native-view-flattening.md` | MEDIUM | View hierarchy debugging |\n| `native-memory-patterns.md` | MEDIUM | C++\u002FSwift\u002FKotlin memory |\n| `native-memory-leaks.md` | MEDIUM | Native memory leak hunting |\n| `native-android-16kb-alignment.md` | CRITICAL | Third-party library alignment for Google Play |\n\n### Bundling (`bundle-*`)\n\n| File | Impact | Description |\n|------|--------|-------------|\n| `bundle-barrel-exports.md` | CRITICAL | Avoid barrel imports |\n| `bundle-analyze-js.md` | CRITICAL | JS bundle visualization |\n| `bundle-tree-shaking.md` | HIGH | Dead code elimination |\n| `bundle-analyze-app.md` | HIGH | App size analysis |\n| `bundle-r8-android.md` | HIGH | Android code shrinking |\n| `bundle-hermes-mmap.md` | HIGH | Disable bundle compression |\n| `bundle-native-assets.md` | HIGH | Asset catalog setup |\n| `bundle-library-size.md` | MEDIUM | Evaluate dependencies |\n| `bundle-code-splitting.md` | MEDIUM | Re.Pack code splitting |\n\n## Searching References\n\n```bash\n# Find patterns by keyword\ngrep -l \"reanimated\" references\u002F\ngrep -l \"flatlist\" references\u002F\ngrep -l \"memory\" references\u002F\ngrep -l \"profil\" references\u002F\ngrep -l \"tti\" references\u002F\ngrep -l \"bundle\" references\u002F\n```\n\n## Problem → Skill Mapping\n\n| Problem | Start With |\n|---------|------------|\n| App feels slow\u002Fjanky | `js-measure-fps.md` → `js-profile-react.md` |\n| Too many re-renders | `js-profile-react.md` → `js-react-compiler.md` |\n| Slow startup (TTI) | `native-measure-tti.md` → `bundle-analyze-js.md` |\n| Large app size | `bundle-analyze-app.md` → `bundle-r8-android.md` |\n| Memory growing | `js-memory-leaks.md` or `native-memory-leaks.md` |\n| Animation drops frames | `js-animations-reanimated.md` |\n| List scroll jank | `js-lists-flatlist-flashlist.md` |\n| TextInput lag | `js-uncontrolled-components.md` |\n| Native module slow | `native-turbo-modules.md` → `native-threading-model.md` |\n| Native library alignment issue | `native-android-16kb-alignment.md` |\n\n## Attribution\n\nBased on \"The Ultimate Guide to React Native Optimization\" by Callstack.\n",{"name":5,"license":15,"metadata":24,"description":7},{"tags":25,"author":26},"react-native, expo, performance, optimization, profiling","Callstack","main","d1b1a29ddb408336ea3867f7c9fbab956be7747e","skills\u002Freact-native-best-practices","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced","Dive into Vibe Coding World with me.","2026-05-26 00:28:40",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill react-native-best-practices",{"tool":40,"command":41},"bunx","bunx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill react-native-best-practices",{"tool":43,"command":44},"pnpm","pnpm dlx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill react-native-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Freact-native-best-practices\u002Fskill.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M74XP1BS37A34J2QEKQ3K3VN","vueuse","Use when working with VueUse composables - provides reactive utilities for state, browser APIs, sensors, network, animations. Check VueUse before writing custom composables - most patterns already implemented.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvueuse\u002Fskill.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M74XNYP2CET8GQB3M2K40T0H","vue","Use when editing .vue files, creating Vue 3 components, writing composables, or testing Vue code - provides Composition API patterns, props\u002Femits best practices, VueUse integration, and reactive destructuring guidance","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvue\u002Fskill.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M74XNW8REWTQMQ46R59BYK54","vue-best-practices","Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvue-best-practices\u002Fskill.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M74XMFHSC86NGP23XRSB9XSF","ts-library","Use when authoring TypeScript libraries - covers project setup, package exports, build tooling (tsdown\u002Funbuild), API design patterns, type inference tricks, testing, and release workflows. Patterns extracted from 20+ high-quality ecosystem libraries.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fts-library\u002Fskill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M74XK9ASXGQGMV47F1GCP86M","three-best-practices","Three.js performance optimization and best practices guidelines. Use when writing, reviewing, or optimizing Three.js code. Triggers on tasks involving 3D scenes, WebGL\u002FWebGPU rendering, geometries, materials, textures, lighting, shaders, or TSL.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fthree-best-practices\u002Fskill.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M74XH5YERRKW90EJ4S5HC2GA","supabase-best-practices","Supabase security and performance guidelines with Clerk authentication integration. Contains 40+ rules across 10 categories covering RLS policies, Clerk setup, database security, and more.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fsupabase-best-practices\u002Fskill.md",[],[]]