Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide default 'ReactJsExceptionHandler' when missing #44942

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alanleedev
Copy link
Contributor

Summary:
Making ReactJsExceptionHandler optional (using nullable) when passing into ReactHostImpl. Default implementation implemented in ReactInstance.java is provided when it is null. Default handler uses NativeExceptionHandler TurboModule to handle error.
Changing existing implementation using an empty stub with null so default implementation can be utilized.

Changelog: [Android][Added] Providing a default ReactJsExceptionHandler when null parameter is passed into ReactHostImpl constructor

Differential Revision: D58558762

Summary:
Making `ReactJsExceptionHandler` optional (using nullable) when passing into ReactHostImpl. Default implementation implemented in `ReactInstance.java` is provided when it is null. Default handler uses NativeExceptionHandler TurboModule to handle error.
Changing existing implementation using an empty stub with `null` so default implementation can be utilized.

Changelog: [Android][Added] Providing a default `ReactJsExceptionHandler` when `null` parameter is passed into `ReactHostImpl` constructor

Differential Revision: D58558762
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jun 14, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D58558762

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 20,365,559 +1,038
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 23,569,613 -18
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 8b53d41
Branch: main

@react-native-bot
Copy link
Collaborator

This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@react-native-bot react-native-bot added Stale There has been a lack of activity on this issue and it may be closed soon. and removed Stale There has been a lack of activity on this issue and it may be closed soon. labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants