Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update React Native shims to use export syntax (#31426) #47551

Closed
wants to merge 1 commit into from

Conversation

huntie
Copy link
Member

@huntie huntie commented Nov 11, 2024

Summary:

Summary

I'm working to get the main react-native package parsable by modern
Flow tooling (both flow-bundler, flow-api-translator), and one
blocker is legacy module.exports syntax. This diff updates files which
are synced to
react-native

from this repo.

How did you test this change?

Files were pasted into react-native-github under fbsource, where Flow
validates ✅.

DiffTrain build for 5c56b873efb300b4d1afc4ba6f16acf17e4e5800

Differential Revision: D65672576

Pulled By: huntie

@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 Nov 11, 2024
@facebook-github-bot
Copy link
Contributor

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

…book#47551)

Summary:

## Summary

I'm working to get the main `react-native` package parsable by modern
Flow tooling (both `flow-bundler`, `flow-api-translator`), and one
blocker is legacy `module.exports` syntax. This diff updates files which
are [synced to
`react-native`](https://github.com/facebook/react-native/tree/main/packages/react-native/Libraries/Renderer/shims)
from this repo.

## How did you test this change?

Files were pasted into `react-native-github` under fbsource, where Flow
validates ✅.

DiffTrain build for [5c56b873efb300b4d1afc4ba6f16acf17e4e5800](facebook/react@5c56b87)

Test Plan: Sandcastle tests

Reviewed By: sammy-SC

Differential Revision: D65672576

Pulled By: huntie
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 13, 2024
@facebook-github-bot
Copy link
Contributor

@huntie merged this pull request in 3a41086.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @sammy-SC in 3a41086

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

j-piasecki pushed a commit to software-mansion/react-native-gesture-handler that referenced this pull request Dec 13, 2024
## Description

* 54710a6 - Added `sourceSets` to the
package due to changes in ViewManager function signatures, which are no
longer nullable
* a20adca - Updated to reflect changes
in facebook/react-native#47551,
`findHostInstance_DEPRECATED` is now a property of the `default` object
instead of being a named export. Modified implementation reads from
default and fall back to named export as needed
* ac7e786 - Similar change to the
software-mansion/react-native-svg#2572 that uses
new API to create an association map between JS components and their
native implementations, avoiding `codegen` crawling through the entire
filesystem for `.mm` files.

## Test plan

App with React Native 0.77 (like
#3277)
should compile and work as expected.
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.

4 participants