Fix resizeMethod prop (#54178)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54178

The `resizeMethod` prop was reading from `internal_analyticTag` and not setting on the backing image, this change remaps it

Changelog: [General][Fixed] resizeMethod was not propagated correctly on Android with Props 2.0

Reviewed By: javache

Differential Revision: D84716400

fbshipit-source-id: 320aded79cba787585d875fc46111bca34c0c30c
This commit is contained in:
Peter Abbondanzo
2025-10-16 15:26:46 -07:00
committed by meta-codesync[bot]
parent 40ac4478fb
commit 7c543db181
@@ -92,12 +92,12 @@ ImageProps::ImageProps(
{})),
resizeMethod(
ReactNativeFeatureFlags::enableCppPropsIteratorSetter()
? sourceProps.internal_analyticTag
? sourceProps.resizeMethod
: convertRawProp(
context,
rawProps,
"resizeMethod",
sourceProps.internal_analyticTag,
sourceProps.resizeMethod,
{})),
resizeMultiplier(
ReactNativeFeatureFlags::enableCppPropsIteratorSetter()