Skill: React Upgrade Layer

May 25, 2026 ยท View on GitHub

React-specific upgrade rules to run when react changes during a React Native or Expo upgrade.

When to Apply

  • react version changes (major, minor, or patch).
  • React Native target implies a newer React pairing.
  • Tests/types break after React upgrade.

React Pairing Rules

  1. Keep companion packages aligned with installed React version:
    • react-test-renderer
    • @types/react
    • react-dom (if used by the app)
  2. Prefer matching React major and minor exactly; patch should also match when available.
  3. Do not leave these packages on older x.y after upgrading react.

React 19 Rules

  1. Upgrade @testing-library/react-native to v13+.
  2. Follow:
  3. Expect type-level breakages from deprecated API removals; fix code and mocks accordingly.