Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>RN Click to SourceNew to Visual Studio Code? Get it now.
RN Click to Source

RN Click to Source

abbasKareem

| (0) | Free
Live iOS simulator in VS Code. Cmd+click a React Native component to open its source.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RN Click to Source

Your live iOS simulator in a VS Code side panel. Cmd+click a React Native component to open its source. No changes to your app are needed.

  • Click / drag / scroll / type: drives the app
  • Cmd+hover: highlights the view under the pointer
  • Cmd+click: opens the file and line where the component is used
  • Cmd+Shift+click: choose from the parent chain
  • Inspect button: the same as holding Cmd
  • Chain list: click opens the usage, Alt+click opens the component's definition file

Getting started

  1. Boot an iOS simulator and run your React Native or Expo dev build with Metro.
  2. Open the app's project folder in VS Code.
  3. Run RN Inspector: Open Simulator Panel from the Command Palette.

If Metro uses an unusual port, add it to the rnInspector.metroPorts setting.

Requirements

  • macOS on Apple Silicon, with Xcode
  • A booted iOS simulator in portrait
  • A dev build on the New Architecture with React 19 (release builds have no source information)

Android is not supported.

Development

  • npm test: unit tests
  • npm run test:vscode: end to end in an isolated VS Code (needs an app running; read-only)
  • npm run inspect -- 0.5,0.3: inspect a point from the terminal
  • npm run harness: the panel in a browser on port 3478
  • npm run package: build the .vsix

How it works

Metro's debugger connection evaluates a read-only lookup in the app, which hit-tests the Fabric tree and reads each component's creation stack. Metro's /symbolicate turns those into source positions. Everything runs on your Mac.

Video and touch come from serve-sim (Apache-2.0).

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft