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
This commit is contained in:
David Vacca 2018-08-15 17:50:04 -07:00 committed by Facebook Github Bot
parent 8a8ee33f48
commit 3418d01703
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -32,6 +32,9 @@ public:
Props(const Props &sourceProps, const RawProps &rawProps);
const std::string nativeId;
#ifdef ANDROID
const RawProps rawProps;
#endif
};
} // namespace react