Skip to content

Commit 51a7f90

Browse files
dmytrorykunfacebook-github-bot
authored andcommitted
Fix ViewConfig validation error after merging defaultSrc into defaultSource for RCTImageView (facebook#47754)
Summary: The `./resolveAssetSource` processor was added to the `defaultSource` prop in the `RCTImageView` static view config in D65819218. To match this in native view config, we're adding the `customType = "ImageSource"` hint to the view config infra, so it knows to assign correct processor to the native view config in runtime. Changelog: [Internal] Reviewed By: javache Differential Revision: D66228921
1 parent f794ff3 commit 51a7f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public constructor(
124124
}
125125
}
126126

127-
@ReactProp(name = "defaultSource")
127+
@ReactProp(name = "defaultSource", customType = "ImageSource")
128128
public fun setDefaultSource(view: ReactImageView, source: String?) {
129129
view.setDefaultSource(source)
130130
}

0 commit comments

Comments
 (0)