mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 22:58:19 +00:00
Fix for Image displayName, currently displaying as <Component> in tests (#23287)
Summary: As per https://github.com/facebook/react-native/issues/21937, Image `displayName` is not set. This means it comes through as `<Component>` in tests. [General][fixed] - fix `displayName` for `Image` Pull Request resolved: https://github.com/facebook/react-native/pull/23287 Differential Revision: D13941744 Pulled By: cpojer fbshipit-source-id: eab161eee415ec4f7207efcd5c6e2a4bbe67dfe1
This commit is contained in:
parent
c7b57f1986
commit
4989123f8c
@ -259,6 +259,7 @@ let Image = (
|
|||||||
};
|
};
|
||||||
|
|
||||||
Image = React.forwardRef(Image);
|
Image = React.forwardRef(Image);
|
||||||
|
Image.displayName = 'Image';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the width and height (in pixels) of an image prior to displaying it
|
* 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 = React.forwardRef(Image);
|
||||||
|
Image.displayName = 'Image';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the width and height (in pixels) of an image prior to displaying it.
|
* Retrieve the width and height (in pixels) of an image prior to displaying it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user