Skip to content

Conversation

@christophpurrer
Copy link
Contributor

Summary:
Changelog: [Internal]

We need to forward the imageView width and height to the prefetcher to correctly handle resize requests

Differential Revision: D87083726

@meta-codesync
Copy link

meta-codesync bot commented Nov 14, 2025

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87083726.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 14, 2025
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Nov 14, 2025
…ource prefetching (facebook#54546)

Summary:

Changelog: [Internal]

We need to forward the `imageView` width and height to the prefetcher to correctly handle resize requests

Differential Revision: D87083726
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request Nov 14, 2025
…ource prefetching (facebook#54546)

Summary:

Changelog: [Internal]

We need to forward the `imageView` width and height to the prefetcher to correctly handle resize requests

Differential Revision: D87083726
Summary:

Changelog: [Internal]

Currently these default values

https://reactnative.dev/docs/image#resizemethod-android
https://reactnative.dev/docs/image#resizemultiplier-android

are not correctly treated in C++ code as parsing bails out here:

https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/react/renderer/core/propsConversions.h#L176-L177

By setting default values in the struct, we can fix it

Reviewed By: sbuggay

Differential Revision: D87083023
…ource prefetching (facebook#54546)

Summary:

Changelog: [Internal]

We need to forward the `imageView` width and height to the prefetcher to correctly handle resize requests

Reviewed By: sbuggay

Differential Revision: D87083726
@meta-codesync
Copy link

meta-codesync bot commented Nov 15, 2025

This pull request has been merged in c2623af.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 15, 2025
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @christophpurrer in c2623af

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

douglowder pushed a commit to react-native-tvos/react-native-tvos that referenced this pull request Nov 15, 2025
…ource prefetching (#54546)

Summary:
Pull Request resolved: facebook/react-native#54546

Changelog: [Internal]

We need to forward the `imageView` width and height to the prefetcher to correctly handle resize requests

Reviewed By: sbuggay

Differential Revision: D87083726

fbshipit-source-id: 8abfc7702e79ac8ad254229391ca1259fd1f5b47
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants