Skip to content

overlay: support Angular Native apps (Angular on React Native's Fabric) #198

Description

@erkamyaman

The problem

Angular Native (by @ashley-hunter) runs Angular components as real iOS and Android views on React Native's Fabric renderer. There is no DOM and no WebView, so the browser overlay can't see the app, and its docs currently say Angular DevTools does not attach on a device. That leaves no way to inspect components, signals or DI in an Angular Native app.

What you'd like to see

An overlay for Angular Native, built the same way as the NativeScript one in #16:

  • A HostTree over Angular Native's nodes (roots, children, parent, tag, selector), so the component, signal, injector and NgRx collectors run unchanged.
  • An entry point such as @santoshyadavdev/ng-devtools/overlay-angular-native that reports to the devtools server over a WebSocket, with reconnection.
  • Highlight that outlines the native view.
  • An example app under examples/angular-native, and a setup section in the docs.

Angular Native should need fewer workarounds than NativeScript:

  • It bootstraps through ɵcreateOrReusePlatformInjector, which calls publishDefaultGlobalUtils() in dev mode, so ng.getComponent and the rest should be on globalThis.
  • React Native defines window, so Angular should set up the injector profiler on its own.
  • WebSocket is built into React Native, so no plugin is needed.

These still need checking on a device, along with whether Metro bundles the overlay as published.

Angular APIs involved

ng.getComponent, ng.getDirectives, ng.getInjector and the injector profiler, the same as #16. The work builds on #16's HostTree refactor.

Docs impact

Setup or options

Contributing

  • I'd like to work on this

Activity

  1. self-assigned this
    on Oct 1, 2026
  2. added
    featureA feature request or a pull request that adds one
    needs triageNot looked at by a maintainer yet
    on Oct 1, 2026
  3. Nicoss54 commented on Oct 1, 2026

    @Nicoss54
    Contributor

    @erkamyaman i would be happy to work on it if you're okay about this

  4. erkamyaman commented on Oct 1, 2026

    @erkamyaman
    MemberAuthor

    @erkamyaman i would be happy to work on it if you're okay about this

    I started working on this since I have already got it assigned, but I'm sure there will be much to improve when it lands

  5. erkamyaman commented on Oct 5, 2026

    @erkamyaman
    MemberAuthor

    Done in #199: Angular Native apps report to the devtools from a simulator, an emulator or a phone, through @pangular-inspector/devtools/overlay-angular-native, and show in the Angular Native view. Ships in 0.0.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureA feature request or a pull request that adds oneneeds triageNot looked at by a maintainer yet

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions