Skip to content

Commit 7c543db

Browse files
Abbondanzometa-codesync[bot]
authored andcommitted
Fix resizeMethod prop (facebook#54178)
Summary: Pull Request resolved: facebook#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
1 parent 40ac447 commit 7c543db

File tree

1 file changed

+2
-2
lines changed
  • packages/react-native/ReactCommon/react/renderer/components/image

1 file changed

+2
-2
lines changed

packages/react-native/ReactCommon/react/renderer/components/image/ImageProps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ ImageProps::ImageProps(
9292
{})),
9393
resizeMethod(
9494
ReactNativeFeatureFlags::enableCppPropsIteratorSetter()
95-
? sourceProps.internal_analyticTag
95+
? sourceProps.resizeMethod
9696
: convertRawProp(
9797
context,
9898
rawProps,
9999
"resizeMethod",
100-
sourceProps.internal_analyticTag,
100+
sourceProps.resizeMethod,
101101
{})),
102102
resizeMultiplier(
103103
ReactNativeFeatureFlags::enableCppPropsIteratorSetter()

0 commit comments

Comments
 (0)