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

cipolleschi/0 77 properly handle null values tm interop #49298

Open
wants to merge 1 commit into
base: 0.77-stable
Choose a base branch
from

Conversation

cipolleschi
Copy link
Contributor

@cipolleschi cipolleschi commented Feb 10, 2025

Summary:

This PR targets 0.78-stable and it mimics this other PR on main #49250

The original PR has not landed in main yet, but we need it if we want to prepare a golden release candidate.

The problem we are seeing is that some legacy module were passing null values from JS to Native and the null value was used in native to make business logic decisions.

In the New Architecture, null values passed down from JS to Native are stripped out and native does not receive them.
This break some Legacy Libraries that are not migrated to the New Architecture yet.

This change fixes this problem and properly forward null values to modules working throught the interop layer.

Changelog:

[iOS][Fixed] - Properly handle null value in TurboModule Interop layer.

Test Plan:

Tested in a reproducer provided by the community.
All internal tests on the mentioned PR on main are green.

@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 10, 2025
@cipolleschi cipolleschi changed the base branch from main to 0.77-stable February 10, 2025 13:09
@cipolleschi cipolleschi marked this pull request as ready for review February 10, 2025 13:09
@robhogan
Copy link
Contributor

Picking d423679 now that it's landed

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. p: Facebook Partner: Facebook Partner Pick Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants