7/7 Log attribution context from the image component

Summary: Changelog: [Internal] Log attribution context from the Fabric image component

Reviewed By: fkgozali

Differential Revision: D23547930

fbshipit-source-id: 125f34dac85ff6ac52a798bb1a36394436cb2c0f
This commit is contained in:
Paige Sun
2020-09-11 15:09:12 -07:00
committed by Facebook GitHub Bot
parent acda299453
commit 8e9d3ceddf
2 changed files with 7 additions and 1 deletions
@@ -30,7 +30,12 @@ ImageProps::ImageProps(const ImageProps &sourceProps, const RawProps &rawProps)
capInsets(
convertRawProp(rawProps, "capInsets", sourceProps.capInsets, {})),
tintColor(
convertRawProp(rawProps, "tintColor", sourceProps.tintColor, {})) {}
convertRawProp(rawProps, "tintColor", sourceProps.tintColor, {})),
internal_analyticTag(convertRawProp(
rawProps,
"internal_analyticTag",
sourceProps.internal_analyticTag,
{})) {}
} // namespace react
} // namespace facebook
@@ -26,6 +26,7 @@ class ImageProps final : public ViewProps {
const Float blurRadius{};
const EdgeInsets capInsets{};
const SharedColor tintColor{};
const std::string internal_analyticTag{};
};
} // namespace react