RepoPilot

react / react-native

Search react/react-native

GitHub

Code

How react/react-native is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely public API
  4. Likely public API
  5. Likely start-up file
  6. Likely start-up file
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new UI component

  • Export component through main react-private-interface.js if intended for public API

Add animation support to a component

  • Define animated properties compatible with NativeAnimatedHelper via NativeAnimatedValidation
  • Test animation performance against warnOnRepeatedSafeAreaInsetsChanges patterns to avoid redundant updates

Add a new event type or responder behavior

  • Define event type mapping in ReactNativeEventTypeMapping
  • Implement responder logic in ReactNativeResponder or ResponderTouchHistoryStore
  • Route dispatched events through dispatchNativeEvent entry point

Gate a feature with a feature flag

  • Add flag definition to base flags file
  • Access flag resolution through ReactNativeFeatureFlags main module

Change the public API

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.
  • The file list is newer than the written guide, so descriptions and suggested changes may describe older code.

Code quality and hotspots

Largest source files

  • Branch points97 per file on average
  • Code issues1 error, 248 warnings
  • Largest file6,082 lines
  • Hotspot load2 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions38 workflows
  • Tests1,437 test files0.37 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: .github/workflow-scripts/__tests__ · packages/dev-middleware/src/__tests__ · packages/debugger-shell/__tests__

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.