Skip to content

Migrate files in Libraries/EventEmitter and Libraries/Image to use export syntax#49020

Closed
iwoplaza wants to merge 1 commit into
facebook:mainfrom
iwoplaza:export-D68780876
Closed

Migrate files in Libraries/EventEmitter and Libraries/Image to use export syntax#49020
iwoplaza wants to merge 1 commit into
facebook:mainfrom
iwoplaza:export-D68780876

Conversation

@iwoplaza
Copy link
Copy Markdown
Contributor

Summary:

Motivation

Modernising the RN codebase to allow for modern Flow tooling to process it.

This diff

  • Migrates the Libraries/EventEmitter/*.js and Libraries/Image/*.js files to use the export syntax.
  • Updates deep-imports of these files to use .default
  • Updates the current iteration of API snapshots (intended).

Changelog:
[General][Breaking] - Deep imports to modules inside Libraries/EventEmitter and Libraries/Image/*.js with require syntax need to be appended with '.default'.

Differential Revision: D68780876

@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 Jan 28, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

…port syntax (facebook#49020)

Summary:

## Motivation
Modernising the RN codebase to allow for modern Flow tooling to process it.

## This diff
- Migrates the `Libraries/EventEmitter/*.js` and `Libraries/Image/*.js` files to use the `export` syntax.
- Updates deep-imports of these files to use `.default`
- Updates the current iteration of API snapshots (intended).

Changelog:
[General][Breaking] - Deep imports to modules inside `Libraries/EventEmitter` and `Libraries/Image/*.js` with `require` syntax need to be appended with '.default'.

Reviewed By: huntie

Differential Revision: D68780876
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @iwoplaza in 8783196

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jan 30, 2025
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 Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants