React Native Skills
Apply React Native and Expo best practices for building performant mobile applications. This runbook guides the agent through auditing and improving React Native codebases by applying prioriti
11 steps · start to finish.
- 1Step 1
Environment Setup
▶Verify the environment and locate the React Native project to audit.
echo "=== Environment Setup ===" # Verify node is available node --version || { echo "ERROR: node not found"; exit 1; } npm --version || { echo "ERROR: npm not found"; exit 1; } # Create output directory mkdir -p /app/results # Verify target directory exists and contains a React Native project TARGET_DIR="${TARGET_DIR:-$(pwd)}" if [ ! -f "$TARGET_DIR/package.json" ]; then echo "ERROR: No package.json found at $TARGET_DIR" exit 1 fi # Check for React Native dependency if grep -q "react-native" "$TARGET_DIR/package.json"; then echo "PASS: React Native project detected at $TARGET_DIR" else echo "WARNING: react-native not found in package.json — verify this is an RN project" fi echo "Setup complete." - 2Step 2
Audit List Performance (CRITICAL)
▶Apply list performance rules — these have the highest impact on perceived app speed.
- 3Step 3
Audit Animation Patterns (HIGH)
▶Apply animation rules to ensure GPU-accelerated, jank-free animations.
- 4Step 4
Audit Navigation (HIGH)
▶Verify native navigator usage for best performance.
- 5Step 5
Audit UI Patterns (HIGH)
▶Apply UI component best practices.
- 6Step 6
Audit State Management (MEDIUM)
▶Apply state management rules to reduce unnecessary re-renders.
- 7Step 7
Audit Rendering (MEDIUM)
▶Fix rendering anti-patterns that cause runtime warnings or visual glitches.
- 8Step 8
Audit Monorepo Configuration (MEDIUM)
▶For monorepo setups, apply dependency isolation rules.
- 9Step 9
Audit Configuration (LOW)
▶Apply low-impact but good-practice configuration rules.
- 10Step 10
Iterate on Errors (max 3 rounds)
▶If any automated fix caused a build failure or test failure:
- 11Step 11
Write Results
▶Serialize all findings and applied changes to the output files.