Skip to content

Commit

Permalink
Extend Image.android to support analyticsTag prop
Browse files Browse the repository at this point in the history
Summary:
Quick diff to extend Image.android component to support analytics tag prop

changelog: [internal]

Reviewed By: JoshuaGross

Differential Revision: D20880601

fbshipit-source-id: 99bc11f36ce46953c00480f7c8d628cf6c0a9263
  • Loading branch information
mdvacca authored and facebook-github-bot committed Apr 7, 2020
1 parent 72150f5 commit 1c10568
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/Image/Image.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ const ImageProps = {
]): React$PropType$Primitive<{uri?: string, ...} | number>),
progressiveRenderingEnabled: PropTypes.bool,
fadeDuration: PropTypes.number,
/**
* Analytics Tag used by this Image
*/
analyticTag: PropTypes.string,
/**
* Invoked on load start
*/
Expand Down
5 changes: 5 additions & 0 deletions Libraries/Image/ImageProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ export type ImageProps = {|
*/
accessible?: ?boolean,

/**
* Analytics Tag used by this Image
*/
analyticTag?: ?string,

/**
* The text that's read by the screen reader when the user interacts with
* the image.
Expand Down

0 comments on commit 1c10568

Please sign in to comment.