mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fc1f0df465
Summary: Changelog: [internal] If ShadowNode has not been mounted, forward rawProps from `sourceShadowNode` to newly cloned shadow node. This is Android specific change, on iOS the logic should remain unchanged. Reviewed By: JoshuaGross Differential Revision: D26049264 fbshipit-source-id: 7c201bc2d4e99eec024065714d2172c5c817153c
25 lines
558 B
C++
25 lines
558 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 "Constants.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
static bool isPropsForwardingEnabled = false;
|
|
|
|
void Constants::setPropsForwardingEnabled(bool propsForwardingEnabled) {
|
|
isPropsForwardingEnabled = propsForwardingEnabled;
|
|
}
|
|
|
|
bool Constants::getPropsForwardingEnabled() {
|
|
return isPropsForwardingEnabled;
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|