Skip to content

Commit

Permalink
<Image/>: Add native view config for source
Browse files Browse the repository at this point in the history
Summary:
<Image/>'s source prop was introduced in D51479305.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D56831756
  • Loading branch information
RSNara authored and facebook-github-bot committed May 2, 2024
1 parent e6c5bc7 commit 0e3f789
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ public void setAccessible(ReactImageView view, boolean accessible) {

// In JS this is Image.props.source
@ReactProp(name = "src")
public void setSrc(ReactImageView view, @Nullable ReadableArray sources) {
setSource(view, sources);
}

@ReactProp(name = "source")
public void setSource(ReactImageView view, @Nullable ReadableArray sources) {
view.setSource(sources);
}
Expand Down

0 comments on commit 0e3f789

Please sign in to comment.