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

fix(iOS): unify prefetchImageWithMetadata's signature in JS and ObjC land #47532

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TheRogue76
Copy link
Contributor

@TheRogue76 TheRogue76 commented Nov 8, 2024

Summary:

in prefetchImageWithMetadata's implementation in ObjC, the method's queryRootName is treated as being nullable. The image spec for it in JS (and the Codegened ObjC header that gets built on top of it) treat the field as not nullable. This change makes the field nullable in the spec to match up what we have in the implementation.

I also noticed that the method is not defined in the Image props on the RN website, so perhaps we should add this there as well.

Changelog:

[IOS] [CHANGED] - make prefetchImageWithMetadata's queryRootName nullable in the spec

Test Plan:

yarn test:
Screenshot 2024-11-09 at 00 36 30
It has no iOS specific tests, so nothing to run on that side

@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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Nov 8, 2024
Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

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

thanks for this fix!

@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.

@TheRogue76
Copy link
Contributor Author

No idea how i managed to kill the poor CI for it to take 165 minutes. @cipolleschi Did it say what had gone wrong?

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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants