Yeris Rifan a141db3ad2
feat(rules,skills): add React Native / Expo rules pack and react-native-patterns skill (#2275)
* feat(rules,skills): add React Native / Expo rules pack and react-native-patterns skill

* fix(rules,skills): address review feedback — safeParse nav example, drop deprecated sentry-expo, memoize list renderItem, clarify New Architecture SDK support

* fix(rules,skills): drop deprecated Flipper, surface permission-denied state in location hook
2026-06-29 19:22:48 -07:00

1.2 KiB

paths
paths
**/*.ts
**/*.tsx

React Native / Expo Hooks

This file extends common/hooks.md with React Native / Expo-specific automation guidance.

These are recommended PostToolUse automations to keep RN/Expo code healthy. Wire them in your hook runtime (or run manually); adapt commands to your package manager.

Suggested PostToolUse checks (on edit of .ts/.tsx)

  • Type check: tsc --noEmit — catch type errors early.
  • Lint: npx expo lint (uses eslint-config-expo; flat config eslint.config.js is the default from SDK 53+).
  • Format: prettier --write on changed files.

Pre-release / periodic

  • npx expo-doctor — validates Expo/native dependency health and config.
  • npx expo install --check — keeps native deps aligned with the installed Expo SDK.
  • npm audit — dependency vulnerability scan.

Notes

  • Do not run heavy native builds inside fast edit hooks; keep edit-time hooks to typecheck/lint/format.
  • Reserve eas build / E2E for explicit commands or CI, not per-edit automation.
  • Keep these consistent with ECC hook runtime controls (ECC_HOOK_PROFILE, ECC_DISABLED_HOOKS).