Skip to content

Commit

Permalink
Fix for Image displayName, currently displaying as <Component> in tes…
Browse files Browse the repository at this point in the history
…ts (#23287)

Summary:
As per #21937, Image `displayName` is not set. This means it comes through as `<Component>` in tests.

[General][fixed] - fix `displayName` for `Image`
Pull Request resolved: #23287

Differential Revision: D13941744

Pulled By: cpojer

fbshipit-source-id: eab161eee415ec4f7207efcd5c6e2a4bbe67dfe1
  • Loading branch information
linnett authored and facebook-github-bot committed Feb 4, 2019
1 parent c7b57f1 commit 4989123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Image/Image.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ let Image = (
};

Image = React.forwardRef(Image);
Image.displayName = 'Image';

/**
* Retrieve the width and height (in pixels) of an image prior to displaying it
Expand Down
1 change: 1 addition & 0 deletions Libraries/Image/Image.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ let Image = (
};

Image = React.forwardRef(Image);
Image.displayName = 'Image';

/**
* Retrieve the width and height (in pixels) of an image prior to displaying it.
Expand Down

0 comments on commit 4989123

Please sign in to comment.