Skip to content

Migrate Utilities/dismissKeyboard.js, Utilities/GlobalPerformanceLogger.js & Utilities/SceneTracker.js to use export syntax#49402

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

Migrate Utilities/dismissKeyboard.js, Utilities/GlobalPerformanceLogger.js & Utilities/SceneTracker.js to use export syntax#49402
iwoplaza wants to merge 1 commit into
facebook:mainfrom
iwoplaza:export-D69599636

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 Utilities/dismissKeyboard.js, Utilities/GlobalPerformanceLogger.js and Utilities/SceneTracker.js to use the export syntax.
  • Updates deep-imports of these files to use .default
  • Updates jest mocks
  • Updates the current iteration of API snapshots (intended).

Changelog:
[General][Breaking] - Deep imports to Utilities/dismissKeyboard.js, Utilities/GlobalPerformanceLogger.js or Utilities/SceneTracker.js with require syntax need to be appended with '.default'.

Differential Revision: D69599636

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

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

…er.js & Utilities/SceneTracker.js to use export syntax (facebook#49402)

Summary:

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

## This diff
- Migrates `Utilities/dismissKeyboard.js`, `Utilities/GlobalPerformanceLogger.js` and `Utilities/SceneTracker.js` to use the export syntax.
- Updates deep-imports of these files to use `.default`
- Updates jest mocks
- Updates the current iteration of API snapshots (intended).

Changelog:
[General][Breaking] - Deep imports to `Utilities/dismissKeyboard.js`, `Utilities/GlobalPerformanceLogger.js` or `Utilities/SceneTracker.js` with `require` syntax need to be appended with '.default'.

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

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

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

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 14, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in fc6ca26.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @iwoplaza in fc6ca26

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

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