Skip to content

Conversation

rubennorte
Copy link
Contributor

Summary:
Changelog: [internal]

This is a codemod to remove all unnecessary catch bindings from the react-native package.

Differential Revision: D83245581

Summary:

- Add `: mixed` annotations to all catch parameters in React Native JS files
- Create toError utility for converting mixed values to Error instances
- Create toExtendedError utility for LogBox-specific ExtendedError conversion
- Fix Flow type compatibility issues with proper error handling
- Resolve ESLint import order warnings

Reviewed By: andrewdacenko

Differential Revision: D82304028
Summary:
Changelog: [internal]

This is a codemod to remove all unnecessary catch bindings from the `react-native` package.

Differential Revision: D83245581
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 25, 2025
@facebook-github-bot
Copy link
Contributor

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating diff in D83245581.

Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

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 meta-exported p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants