mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 10:14:49 +00:00
3418d01703
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
25 lines
551 B
C++
25 lines
551 B
C++
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "Props.h"
|
|
|
|
#include <fabric/core/propsConversions.h>
|
|
#include <folly/dynamic.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
Props::Props(const Props &sourceProps, const RawProps &rawProps):
|
|
nativeId(convertRawProp(rawProps, "nativeID", sourceProps.nativeId))
|
|
#ifdef ANDROID
|
|
,rawProps(rawProps)
|
|
#endif
|
|
{};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|