Skip to content

Prepare for removal of types in ReactNativeTypes #49602

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from

Conversation

rubennorte
Copy link
Contributor

Summary:
Changelog: [internal]

This just prepares for the removal of some types from ReactNativeTypes, and defines some types in ReactNativePrivateInterface that ReactNativeTypes expects to be defined after (PR).

Differential Revision: D69996009

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

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Feb 24, 2025
Summary:
Pull Request resolved: facebook#49602

Changelog: [internal]

This just prepares for the removal of some types from `ReactNativeTypes`, and defines some types in `ReactNativePrivateInterface` that `ReactNativeTypes` expects to be defined after facebook/react#32446

Differential Revision: D69996009
@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Feb 24, 2025
Summary:
Pull Request resolved: facebook#49602

Changelog: [internal]

This just prepares for the removal of some types from `ReactNativeTypes`, and defines some types in `ReactNativePrivateInterface` that `ReactNativeTypes` expects to be defined after facebook/react#32446

Differential Revision: D69996009
Differential Revision: D69996010
@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Feb 24, 2025
Summary:
Pull Request resolved: facebook#49602

Changelog: [internal]

This just prepares for the removal of some types from `ReactNativeTypes`, and defines some types in `ReactNativePrivateInterface` that `ReactNativeTypes` expects to be defined after facebook/react#32446

Reviewed By: huntie

Differential Revision: D69996009
@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Feb 24, 2025
Summary:
Pull Request resolved: facebook#49602

Changelog: [internal]

This just prepares for the removal of some types from `ReactNativeTypes`, and defines some types in `ReactNativePrivateInterface` that `ReactNativeTypes` expects to be defined after facebook/react#32446

Reviewed By: huntie

Differential Revision: D69996009
Summary:
Pull Request resolved: facebook#49602

Changelog: [internal]

This just prepares for the removal of some types from `ReactNativeTypes`, and defines some types in `ReactNativePrivateInterface` that `ReactNativeTypes` expects to be defined after facebook/react#32446

Reviewed By: huntie

Differential Revision: D69996009
@facebook-github-bot
Copy link
Contributor

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

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

This pull request has been merged in dbc0bf3.

rubennorte added a commit to facebook/react that referenced this pull request Feb 24, 2025
…ce (#32446)

## Summary

> [!NOTE]
> This only modifies types, so shouldn't have an impact at runtime.

Some time ago we moved some type definitions from React to React Native
in #26437.

This continues making progress on that so values that are created by
React Native and passed to the React renderer (in this case public
instances) are actually defined in React Native and not in React.

This will allow us to modify the definition of some of these types
without having to make changes in the React repository (in the short
term, we want to refactor PublicInstance from an object to an interface,
and then modify that interface to add all the new DOM methods).

## How did you test this change?

Manually synced `ReactNativeTypes` on top of
facebook/react-native#49602 and verified Flow
passes.
github-actions bot pushed a commit to facebook/react that referenced this pull request Feb 24, 2025
…ce (#32446)

## Summary

> [!NOTE]
> This only modifies types, so shouldn't have an impact at runtime.

Some time ago we moved some type definitions from React to React Native
in #26437.

This continues making progress on that so values that are created by
React Native and passed to the React renderer (in this case public
instances) are actually defined in React Native and not in React.

This will allow us to modify the definition of some of these types
without having to make changes in the React repository (in the short
term, we want to refactor PublicInstance from an object to an interface,
and then modify that interface to add all the new DOM methods).

## How did you test this change?

Manually synced `ReactNativeTypes` on top of
facebook/react-native#49602 and verified Flow
passes.

DiffTrain build for [9dd378f](9dd378f)
rubennorte added a commit to rubennorte/react-native that referenced this pull request Feb 24, 2025
…acebook#32446)

Summary:
## Summary

> [!NOTE]
> This only modifies types, so shouldn't have an impact at runtime.

Some time ago we moved some type definitions from React to React Native
in facebook#26437.

This continues making progress on that so values that are created by
React Native and passed to the React renderer (in this case public
instances) are actually defined in React Native and not in React.

This will allow us to modify the definition of some of these types
without having to make changes in the React repository (in the short
term, we want to refactor PublicInstance from an object to an interface,
and then modify that interface to add all the new DOM methods).

## How did you test this change?

Manually synced `ReactNativeTypes` on top of
facebook#49602 and verified Flow
passes.

DiffTrain build for [9dd378ff1222335ff133bab2d61001fcc84a1c56](facebook/react@9dd378f)

Differential Revision: D70091830
rubennorte added a commit to rubennorte/react-native that referenced this pull request Feb 24, 2025
…terface (facebook#32446)

Summary:
## Summary

> [!NOTE]
> This only modifies types, so shouldn't have an impact at runtime.

Some time ago we moved some type definitions from React to React Native
in facebook#26437.

This continues making progress on that so values that are created by
React Native and passed to the React renderer (in this case public
instances) are actually defined in React Native and not in React.

This will allow us to modify the definition of some of these types
without having to make changes in the React repository (in the short
term, we want to refactor PublicInstance from an object to an interface,
and then modify that interface to add all the new DOM methods).

## How did you test this change?

Manually synced `ReactNativeTypes` on top of
facebook#49602 and verified Flow
passes.

DiffTrain build for [9dd378ff1222335ff133bab2d61001fcc84a1c56](facebook/react@9dd378f)

Differential Revision: D70091830
rubennorte added a commit to rubennorte/react-native that referenced this pull request Feb 24, 2025
…acebook#32446)

Summary:
## Summary

> [!NOTE]
> This only modifies types, so shouldn't have an impact at runtime.

Some time ago we moved some type definitions from React to React Native
in facebook#26437.

This continues making progress on that so values that are created by
React Native and passed to the React renderer (in this case public
instances) are actually defined in React Native and not in React.

This will allow us to modify the definition of some of these types
without having to make changes in the React repository (in the short
term, we want to refactor PublicInstance from an object to an interface,
and then modify that interface to add all the new DOM methods).

## How did you test this change?

Manually synced `ReactNativeTypes` on top of
facebook#49602 and verified Flow
passes.

DiffTrain build for [9dd378ff1222335ff133bab2d61001fcc84a1c56](facebook/react@9dd378f)

Differential Revision: D70091830
facebook-github-bot pushed a commit that referenced this pull request Feb 26, 2025
…32446)

Summary:
## Summary

> [!NOTE]
> This only modifies types, so shouldn't have an impact at runtime.

Some time ago we moved some type definitions from React to React Native
in #26437.

This continues making progress on that so values that are created by
React Native and passed to the React renderer (in this case public
instances) are actually defined in React Native and not in React.

This will allow us to modify the definition of some of these types
without having to make changes in the React repository (in the short
term, we want to refactor PublicInstance from an object to an interface,
and then modify that interface to add all the new DOM methods).

## How did you test this change?

Manually synced `ReactNativeTypes` on top of
#49602 and verified Flow
passes.

DiffTrain build for [9dd378ff1222335ff133bab2d61001fcc84a1c56](facebook/react@9dd378f)

Reviewed By: poteto

Differential Revision: D70091830

fbshipit-source-id: 2cc49d8ed89e8ee2531dbc4094ef9720fc3040ad
# for free to join this conversation on GitHub. Already have an account? # 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