Ship React Native and Expo SDK support#155
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds first-class React Native/Expo support to the SDK, including a new @exceptionless/react-native package with native iOS crash reporting, React Native stack parsing, lifecycle/global error handling, AsyncStorage-backed persistence, and an Expo sample app.
Changes:
- Added the React Native package, plugins, native iOS bridge, Expo plugin, docs, and test coverage.
- Updated React error-boundary data shape and React package peer/build metadata.
- Updated examples, local server URLs, workspace/test configuration, and React dependency pins.
Reviewed changes
Copilot reviewed 66 out of 74 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
vitest.config.ts |
Adds React Native test project and mocks. |
README.md |
Documents React Native/Expo usage and updated local server URL. |
packages/react/src/ExceptionlessErrorBoundary.tsx |
Stores React component stack directly. |
packages/react/package.json |
Externalizes React in bundles and adds peer dependency. |
packages/react-native/tsconfig.json |
Adds package TypeScript config. |
packages/react-native/test/** |
Adds unit tests and React Native/AsyncStorage mocks. |
packages/react-native/src/** |
Adds RN client, plugins, storage, logging, error boundary, and exports. |
packages/react-native/ios/** |
Adds iOS native module and PLCrashReporter wrapper. |
packages/react-native/expo-plugin/** |
Adds Expo config plugin entrypoint. |
packages/react-native/package.json |
Defines new package metadata, exports, scripts, peers, and files. |
packages/react-native/README.md |
Adds package-specific documentation. |
packages/react-native/LICENSE |
Adds package license file. |
packages/react-native/react-native.config.cjs |
Adds RN CLI autolinking config. |
packages/react-native/exceptionless-react-native.podspec |
Adds iOS podspec. |
packages/core/src/ExceptionlessClient.ts |
Fixes startup callback/string union type. |
packages/browser/src/BrowserExceptionlessClient.ts |
Fixes startup callback/string union type. |
packages/node/src/NodeExceptionlessClient.ts |
Fixes startup callback/string union type. |
packages/core/test/ExceptionlessClient.test.ts |
Updates expected local server URL. |
package.json |
Adds RN workspace and root React dev deps. |
example/** |
Updates server URLs and React pins in existing examples. |
example/expo/** |
Adds Expo sample app for RN SDK testing. |
eslint.config.mjs |
Ignores RN config/plugin files. |
.vscode/launch.json |
Adds Expo iOS launch profile. |
.prettierignore |
Ignores Expo generated folders. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b945982 to
5d3c9fc
Compare
chore: remove inline require-import eslint suppressions Fix React Native Expo integration Attach React component stacks to error data Fix React Native PR review findings Add React Native client agent skill docs Force localhost for Expo iOS dogfooding Add native crash plugin review coverage Fix React Native README startup wording
5d3c9fc to
832fd0f
Compare
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.
Summary
Ships first-class React Native and Expo support for the Exceptionless JavaScript SDK.
This adds a new
@exceptionless/react-nativepackage with:@error.data["@component_stack"].Review Fixes
nullafter capture instead of re-rendering the crashing subtree.imagecan benull.inactiveand ending only onbackground.client-react-native.mdto the Exceptionless JavaScript agent skill so future client-integration prompts route to the correct React Native package, Expo plugin, native crash caveats, localhost guidance, and source anchors.Validation
npm test- 342 passingnpm run build- passed across packages and examplesnpm run lint- passednpm pack --workspace=packages/react-native --dry-run- package contents verifiedpod installinexample/expo/ios- succeedednpx tsc --noEmit -p example/expo/tsconfig.json- passed after the localhost script fixnpm run start --workspace=example/expo -- --port 8099- verified Metro waits onhttp://localhost:80998082http://localhost:7110Notes
The pasted Hermes stack shape is now the expected one: the first parsed frame is the app frame (
CrashyComponent,throwUnhandledError, orsubmitCaughtError), React/internal frames follow, native frames stay explicit, and synthetic Hermes?anon_...wrappers no longer leak into the signature method when a real suffix exists.