Skip to content

RFC: New entry point for devsupport APIs (JS API stabilization)#985

Draft
huntie wants to merge 1 commit into
react-native-community:mainfrom
huntie:rfc-devsupport-apis
Draft

RFC: New entry point for devsupport APIs (JS API stabilization)#985
huntie wants to merge 1 commit into
react-native-community:mainfrom
huntie:rfc-devsupport-apis

Conversation

@huntie
Copy link
Copy Markdown
Collaborator

@huntie huntie commented Feb 26, 2026

Note

WIP — very drafty including external references not finished/checked yet.

View the rendered RFC


**The problem:** React Native's development utilities—HMRClient, parseErrorStack, PressabilityDebugView—are internal. This forces ecosystem authors to import from `react-native/Libraries/...` paths that can break between releases.

**Who's affected:**
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niche use-case, but I'm also relying on these in my Mocha Remote test-runner to symbolicate stacktraces https://github.com/kraenhansen/mocha-remote/blob/ac18c95675f833d1801878531295dd5869adee2b/packages/react-native/src/index.tsx#L3-L4

| `HMRClient` | `Libraries/Utilities/HMRClient.js` | LogBox, NativeRedBox, DevSettings, Platform, getDevServer, metro-runtime | [Re.pack](https://github.com/callstack/repack) |
| `openURLInBrowser` | `Libraries/Core/Devtools/openURLInBrowser.js` | getDevServer | — |
| `parseErrorStack` | `Libraries/Core/Devtools/parseErrorStack.js` | parseHermesStack, stacktrace-parser | [[1]](https://docs.google.com/spreadsheets/d/1_bX6Rgz4BgOmpm0XFZPUf306jDVmsFJqcQ4ONYWBKhk/edit?gid=0#gid=0) |
| `symbolicateStackTrace` | `Libraries/Core/Devtools/symbolicateStackTrace.js` | getDevServer, fetch | — |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While at it, it might make sense to pick up facebook/react-native#43566 in the process 🙏

@huntie huntie changed the title [Draft] RFC: New entry point for devsupport APIs RFC: New entry point for devsupport APIs (JS API) May 23, 2026
@huntie huntie changed the title RFC: New entry point for devsupport APIs (JS API) RFC: New entry point for devsupport APIs (JS API stabilization) May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants