Skip to content

Commit

Permalink
Fix ViewConfig validation error after merging defaultSrc into default…
Browse files Browse the repository at this point in the history
…Source for RCTImageView

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]

Differential Revision: D66228921
  • Loading branch information
dmytrorykun authored and facebook-github-bot committed Nov 20, 2024
1 parent 65796a3 commit d9c9f82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public constructor(
}
}

@ReactProp(name = "defaultSource")
@ReactProp(name = "defaultSource", customType = "ImageSource")
public fun setDefaultSource(view: ReactImageView, source: String?) {
view.setDefaultSource(source)
}
Expand Down

0 comments on commit d9c9f82

Please sign in to comment.