Skip to content

Conversation

@rubennorte
Copy link
Contributor

Summary:
Changelog: [internal]

This moves all references to global variables within the react-native package to consume them from a new module with typed exports instead.

This will improve the type safety of globals, by providing accurate types and by easily detecting when a global variable has been removed/changed.

Additionally, this is a good way to document all the globals we have, and possibly clean up some of them soon.

Differential Revision: D90588265

@facebook-github-bot facebook-github-bot added the p: Facebook Partner: Facebook label Jan 14, 2026
@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 Jan 14, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 14, 2026

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Jan 15, 2026
…module (facebook#55165)

Summary:

Changelog: [internal]

This moves all references to global variables within the `react-native` package to consume them from a new module with typed exports instead.

This will improve the type safety of globals, by providing accurate types and by easily detecting when a global variable has been removed/changed.

Additionally, this is a good way to document all the globals we have, and possibly clean up some of them soon.

Reviewed By: yungsters

Differential Revision: D90588265
rubennorte and others added 2 commits January 15, 2026 03:20
Differential Revision: D90762526
…module (facebook#55165)

Summary:
Pull Request resolved: facebook#55165

Changelog: [internal]

This moves all references to global variables within the `react-native` package to consume them from a new module with typed exports instead.

This will improve the type safety of globals, by providing accurate types and by easily detecting when a global variable has been removed/changed.

Additionally, this is a good way to document all the globals we have, and possibly clean up some of them soon.

Reviewed By: yungsters

Differential Revision: D90588265
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.

2 participants