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
24 lines
540 B
C++
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
|