RFC: New entry point for devsupport APIs (JS API stabilization)#985
Draft
huntie wants to merge 1 commit into
Draft
RFC: New entry point for devsupport APIs (JS API stabilization)#985huntie wants to merge 1 commit into
huntie wants to merge 1 commit into
Conversation
kraenhansen
reviewed
Mar 2, 2026
|
|
||
| **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:** |
There was a problem hiding this comment.
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
kraenhansen
reviewed
Mar 2, 2026
| | `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 | — | |
There was a problem hiding this comment.
While at it, it might make sense to pick up facebook/react-native#43566 in the process 🙏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
WIP — very drafty including external references not finished/checked yet.
View the rendered RFC