Files
react-native/ReactCommon/react/renderer/core/Constants.h
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

24 lines
540 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.
*/
#pragma once
namespace facebook {
namespace react {
struct Constants {
/*
Flag controling props forwarding when shadow node is cloned on Android.
Has no effect on iOS.
*/
static void setPropsForwardingEnabled(bool propsForwardingEnabled);
static bool getPropsForwardingEnabled();
};
} // namespace react
} // namespace facebook