Files
react-native/ReactCommon/react/renderer/core/Constants.cpp
T
Samuel Susla fc1f0df465 Introducing: Props forwarding whe cloning shadow node
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
2021-01-28 11:21:21 -08:00

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