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:
parent
8a8ee33f48
commit
3418d01703
|
@ -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
|
||||
|
|
|
@ -32,6 +32,9 @@ public:
|
|||
Props(const Props &sourceProps, const RawProps &rawProps);
|
||||
|
||||
const std::string nativeId;
|
||||
#ifdef ANDROID
|
||||
const RawProps rawProps;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace react
|
||||
|
|
Loading…
Reference in New Issue