mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Having automatic defaults/an optional arg for `convertRawProp` has caused way more problems than it is worth. Remove the default argument. Changelog: [Internal] Reviewed By: shergin Differential Revision: D19151594 fbshipit-source-id: 839ec8d138b2c3c083f221a2871582454004648c
27 lines
635 B
C++
27 lines
635 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* 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 <folly/dynamic.h>
|
|
#include <react/core/propsConversions.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
Props::Props(const Props &sourceProps, const RawProps &rawProps)
|
|
: nativeId(convertRawProp(rawProps, "nativeID", sourceProps.nativeId, {})),
|
|
revision(sourceProps.revision + 1)
|
|
#ifdef ANDROID
|
|
,
|
|
rawProps((folly::dynamic)rawProps)
|
|
#endif
|
|
{};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|