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

Add support for handling com.facebook.react.bridge.Dynamic as parameter type in TurboModules #45944

Closed
wants to merge 1 commit into from

Conversation

cortinico
Copy link
Contributor

Summary:
This diff adds support having (Legacy) Native Modules with functions with parameters of type Dynamic.
This is currently blocking some libraries making it harder for them to migrate to New Architecture.

I've implemented it by adding a DynamicNative implementation of Dynamic which holds a reference of
the payload as a folly::dynamic.

Changelog:
[Android] [Added] - Add support for handling com.facebook.react.bridge.Dynamic as parameter type in TurboModules

Differential Revision: D60966684

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

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

@facebook-github-bot
Copy link
Contributor

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

cortinico added a commit to cortinico/react-native that referenced this pull request Aug 8, 2024
…eter type in TurboModules (facebook#45944)

Summary:
Pull Request resolved: facebook#45944

This diff adds support having (Legacy) Native Modules with functions with parameters of type `Dynamic`.
This is currently blocking some libraries making it harder for them to migrate to New Architecture.

I've implemented it by adding a `DynamicNative` implementation of `Dynamic` which holds a reference of
the payload as a `folly::dynamic`.

Changelog:
[Android] [Added] - Add support for handling `com.facebook.react.bridge.Dynamic` as parameter type in TurboModules

Differential Revision: D60966684
…eter type in TurboModules (facebook#45944)

Summary:
Pull Request resolved: facebook#45944

This diff adds support having (Legacy) Native Modules with functions with parameters of type `Dynamic`.
This is currently blocking some libraries making it harder for them to migrate to New Architecture.

I've implemented it by adding a `DynamicNative` implementation of `Dynamic` which holds a reference of
the payload as a `folly::dynamic`.

Changelog:
[Android] [Added] - Add support for handling `com.facebook.react.bridge.Dynamic` as parameter type in TurboModules

Reviewed By: cipolleschi

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d01f1b3.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 12, 2024
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cortinico in d01f1b3

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

cortinico added a commit that referenced this pull request Aug 16, 2024
…eter type in TurboModules (#45944)

Summary:
Pull Request resolved: #45944

This diff adds support having (Legacy) Native Modules with functions with parameters of type `Dynamic`.
This is currently blocking some libraries making it harder for them to migrate to New Architecture.

I've implemented it by adding a `DynamicNative` implementation of `Dynamic` which holds a reference of
the payload as a `folly::dynamic`.

Changelog:
[Android] [Added] - Add support for handling `com.facebook.react.bridge.Dynamic` as parameter type in TurboModules

Reviewed By: mdvacca, cipolleschi

Differential Revision: D60966684

fbshipit-source-id: 2e63bc53ede5277a9c12f1b19f05f6099f5f35f9
Copy link

This pull request was successfully merged by @cortinico in 7716b58.

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

cortinico added a commit that referenced this pull request Aug 16, 2024
…eter type in TurboModules (#45944)

Summary:
Pull Request resolved: #45944

This diff adds support having (Legacy) Native Modules with functions with parameters of type `Dynamic`.
This is currently blocking some libraries making it harder for them to migrate to New Architecture.

I've implemented it by adding a `DynamicNative` implementation of `Dynamic` which holds a reference of
the payload as a `folly::dynamic`.

Changelog:
[Android] [Added] - Add support for handling `com.facebook.react.bridge.Dynamic` as parameter type in TurboModules

Reviewed By: mdvacca, cipolleschi

Differential Revision: D60966684

fbshipit-source-id: 2e63bc53ede5277a9c12f1b19f05f6099f5f35f9
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