From 3418d0170376312723cbfd5bd325ca41c6dd95c7 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 15 Aug 2018 17:50:04 -0700 Subject: [PATCH] Expose rawProps as part of the Props class Summary: this diff exposes the rawProps folly::dynamic map received by JS as part of the Props class Reviewed By: shergin Differential Revision: D9093559 fbshipit-source-id: 5f5bc4924aebb6bcc24c7a82ce1a59593d44450e --- ReactCommon/fabric/core/shadownode/Props.cpp | 6 +++++- ReactCommon/fabric/core/shadownode/Props.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ReactCommon/fabric/core/shadownode/Props.cpp b/ReactCommon/fabric/core/shadownode/Props.cpp index f70632d4746..38ba1edee50 100644 --- a/ReactCommon/fabric/core/shadownode/Props.cpp +++ b/ReactCommon/fabric/core/shadownode/Props.cpp @@ -14,7 +14,11 @@ namespace facebook { namespace react { Props::Props(const Props &sourceProps, const RawProps &rawProps): - nativeId(convertRawProp(rawProps, "nativeID", sourceProps.nativeId)) {}; + nativeId(convertRawProp(rawProps, "nativeID", sourceProps.nativeId)) + #ifdef ANDROID + ,rawProps(rawProps) + #endif + {}; } // namespace react } // namespace facebook diff --git a/ReactCommon/fabric/core/shadownode/Props.h b/ReactCommon/fabric/core/shadownode/Props.h index 1e349020a97..2ce538bc67f 100644 --- a/ReactCommon/fabric/core/shadownode/Props.h +++ b/ReactCommon/fabric/core/shadownode/Props.h @@ -32,6 +32,9 @@ public: Props(const Props &sourceProps, const RawProps &rawProps); const std::string nativeId; + #ifdef ANDROID + const RawProps rawProps; + #endif }; } // namespace react