Skip to content

Conversation

@yungsters
Copy link
Contributor

Summary:
Refactors RNTesterPlatformTestEventRecorder so that it does not use useMemo from an instance method.

Instead, this diff changes the module to export a hook by the same name, useRecorderTestEventHandlers.

Changelog:
[Internal]

Differential Revision: D74950333

yungsters added 6 commits May 17, 2025 22:50
Summary:

Migrates files to use ESM to mitigate the existing lint warning.

I am suppressing `RelativeImageStub` to preserve compatibility with the dynamic asset exports generated by Metro (i.e. not ESM with `default` exports).

Changelog:
[Internal]

Reviewed By: SamChou19815

Differential Revision: D74943031
Summary:

Migrates files to use ESM to mitigate the existing lint warning.

Changelog:
[Internal]

Differential Revision: D74949792
)

Summary:

The `ReactNativePrivateInterface` module needs to continue using `module.exports` in order to lazily import dependencies.

For now, we just suppress the `lint/no-commonjs-exports` lint rule.

Changelog:
[Internal]

Differential Revision: D74949839
Summary:

Migrates the `BackHandler` mock to use ESM to mitigate the existing lint warning.

I'm actually not sure this is even used anywhere… and the unmocked `BackHandler` is already using ESM.

Changelog:
[Internal]

Differential Revision: D74949885
Summary:

Migrates files to use ESM to mitigate the existing lint warning.

Changelog:
[Internal]

Differential Revision: D74949984
Summary:
Refactors `RNTesterPlatformTestEventRecorder` so that it does not use `useMemo` from an instance method.

Instead, this diff changes the module to export a hook by the same name, `useRecorderTestEventHandlers`.

Changelog:
[Internal]

Differential Revision: D74950333
@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 May 18, 2025
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 55cf1e7.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 18, 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.

2 participants