react-native-expo-skills
SKILL.md
React Native & Expo Skills
Best practices for React Native and Expo mobile applications targeting iOS and Android. Contains rules covering performance, animations, navigation, styling, and platform-specific optimizations.
Tech Stack
- React Native 0.81+
- Expo SDK 54+
- Expo Router (file-based navigation)
- NativeWind (Tailwind CSS)
- React Native Reanimated
- TypeScript
When to Apply
Reference these guidelines when:
- Building React Native or Expo apps for iOS/Android
- Optimizing list and scroll performance
- Implementing animations with Reanimated
- Configuring navigation with Expo Router
- Styling components with NativeWind
- Working with images using expo-image
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Core Rendering | CRITICAL | rendering- |
| 2 | List Performance | HIGH | list-performance- |
| 3 | Animation | HIGH | animation- |
| 4 | Scroll | HIGH | scroll- |
| 5 | Navigation | HIGH | navigation- |
| 6 | React State | MEDIUM | react-state- |
| 7 | State Arch | MEDIUM | state- |
| 8 | React Compiler | MEDIUM | react-compiler- |
| 9 | User Interface | MEDIUM | ui- |
| 10 | JavaScript | LOW | js- |
| 11 | Fonts | LOW | fonts- |
Quick Reference
1. Core Rendering (CRITICAL)
rendering-text-in-text-component- Wrap strings in Text componentsrendering-no-falsy-and- Avoid falsy && for conditional rendering
2. List Performance (HIGH)
list-performance-virtualize- Use FlashList for large listslist-performance-item-memo- Pass primitives for memoizationlist-performance-callbacks- Hoist callbacks to list rootlist-performance-inline-objects- Avoid inline style objectslist-performance-function-references- Keep stable object referenceslist-performance-images- Use compressed images in listslist-performance-item-expensive- Keep list items lightweightlist-performance-item-types- Use item types for heterogeneous lists
3. Animation (HIGH)
animation-gpu-properties- Animate transform and opacity onlyanimation-derived-value- Use useDerivedValue for computed animationsanimation-gesture-detector-press- Use Gesture.Tap for press animations
4. Scroll Performance (HIGH)
scroll-position-no-state- Never track scroll position in useState
5. Navigation (HIGH)
navigation-native-navigators- Use Expo Router for file-based navigation
6. React State (MEDIUM)
react-state-minimize- Minimize state variables, derive valuesreact-state-dispatcher- Use functional setState updatesreact-state-fallback- Use fallback state instead of initialState
7. State Architecture (MEDIUM)
state-ground-truth- State must represent ground truth
8. React Compiler (MEDIUM)
react-compiler-destructure-functions- Destructure functions earlyreact-compiler-reanimated-shared-values- Use .get()/.set() for shared values
9. User Interface (MEDIUM)
ui-expo-image- Use expo-image for all imagesui-pressable- Use Pressable over TouchableOpacityui-safe-area-scroll- Use contentInsetAdjustmentBehaviorui-scrollview-content-inset- Use contentInset for dynamic spacingui-menus- Use native context menusui-native-modals- Use native modals when possibleui-measure-views- Use onLayout for measuring viewsui-styling- Use NativeWind for styling
10. JavaScript (LOW)
js-hoist-intl- Hoist Intl object creation
11. Fonts (LOW)
fonts-config-plugin- Use config plugins for custom fonts
How to Use
Read individual rule files for detailed explanations and code examples:
rules/list-performance-virtualize.md
rules/animation-gpu-properties.md
rules/ui-styling.md
Each rule file contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
Weekly Installs
5
Repository
bitsleuthai/walletGitHub Stars
1
First Seen
Feb 3, 2026
Security Audits
Installed on
cursor5
openclaw4
gemini-cli4
github-copilot4
codex4
kimi-cli4