[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E9DSTA8GZV3V3TAWE314VQ":3,"skill-same:01M6E9DSTA8GZV3V3TAWE314VQ":68},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":14,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M6E9DSTA8GZV3V3TAWE314VQ","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.","iykazrji\u002Fscout","iykazrji","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20295524?v=4","01M6E9CB81PS33FATWZ7ZGPBH6","Iyk Azorji","01M6E9CBC7EX08A2P9K5STXMRJ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fiykazrji\u002Fscout\u002Fblob\u002Fmain\u002Fskills\u002Freact-native-best-practices\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"react","react native best practices","best practices","react native","bundle size","bundle","expo","react-native","modules","bridge","hermes","profiling","memory","performance optimization","js","Optimization","tasks","debugging","guidelines","performance","2026-11-10 10:12:30",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\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\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\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\n## Attribution\n\nBased on \"The Ultimate Guide to React Native Optimization\" by Callstack.\n",{"name":5,"license":15,"metadata":44,"description":7},{"tags":45,"author":46},"react-native, expo, performance, optimization, profiling","Callstack","main","a99c36efad0b0a356a16edeac6b909e89d3f66d0","skills\u002Freact-native-best-practices","https:\u002F\u002Fgithub.com\u002Fiykazrji\u002Fscout","https:\u002F\u002Fgithub.com\u002Fiykazrji","Nigerian | Web & Mobile Developer | Graphic Designer","2026-07-21 12:02:19",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add iykazrji\u002Fscout --skill react-native-best-practices",{"tool":60,"command":61},"bunx","bunx skills add iykazrji\u002Fscout --skill react-native-best-practices",{"tool":63,"command":64},"pnpm","pnpm dlx skills add iykazrji\u002Fscout --skill react-native-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiykazrji\u002Fscout\u002Fblob\u002Fmain\u002Fskills\u002Freact-native-best-practices\u002FSKILL.md",true,[],[69],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":39},"01M6E9DK8S1TEQ0HWWSEX0136E","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002Fiykazrji\u002Fscout\u002Fblob\u002Fmain\u002Fskills\u002Freact-best-practices\u002FSKILL.md",[],[19,76,77,21,78,79,80,81,82,32,83,84,85,34,86,35,37,87,88,38],"vercel react best practices","vercel","react best practices","triggers","writing","pages","next","refactoring","Next.js","data","code","react components","components"]