Skip to content

Conversation

@cipolleschi
Copy link
Contributor

Summary:

In the Old Architecture and for Swift Libraries, these two methods are used to initialize a new disctionary but their implementation was missing so some libraries like lottie were failig to build.

Changelog:

[Internal] - Implement missing count and keyEnumerator methods for RCTComposedViewRegistry

Test Plan:

Tested locally with the repro provided by SWM

@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 Apr 4, 2024
@cipolleschi
Copy link
Contributor Author

@WoLewicki can you try to apply this patch? I tried and everything seems to work fine. In the video you can see the examples running and that we are using the old architecture.

Screen.Recording.2024-04-04.at.13.39.21.mov

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works correctly in my setup too 🎉 Only thing I am worried about is using any other NSDictionary methods in the future and encountering the same problem then.

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

@cipolleschi merged this pull request in 82b58d0.

@github-actions
Copy link

github-actions bot commented Apr 4, 2024

This pull request was successfully merged by @cipolleschi in 82b58d0.

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

cortinico pushed a commit that referenced this pull request Apr 8, 2024
…umerator (#43850)

Summary:
In the Old Architecture and for Swift Libraries, these two methods are used to initialize a new disctionary but their implementation was missing so some libraries like lottie were failig to build.

## Changelog:
[Internal] - Implement missing `count` and `keyEnumerator` methods for RCTComposedViewRegistry

Pull Request resolved: #43850

Test Plan: Tested locally with the repro provided by SWM

Reviewed By: javache

Differential Revision: D55743648

Pulled By: cipolleschi

fbshipit-source-id: 7bdb92625341cd704b8b09920ab3223a2ca61a54
@cortinico cortinico deleted the cipolleschi/fix_rctcomposedviewregistry_oldarch branch June 10, 2024 13:08
This was referenced Jun 28, 2024
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. 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