Skip to content
Permalink
Browse files

Fix for Image displayName, currently displaying as <Component> in tes…

…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 4989123f8cab37c95b020e23b9a925746a3f3677
Showing with 2 additions and 0 deletions.
  1. +1 −0 Libraries/Image/Image.android.js
  2. +1 −0 Libraries/Image/Image.ios.js
@@ -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
@@ -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.

0 comments on commit 4989123

Please sign in to comment.
You can’t perform that action at this time.