mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 10:14:49 +00:00
2bb41031ba
Summary: `RootShadowNode` is a dedicated class for managing the root node. Reviewed By: mdvacca Differential Revision: D7857050 fbshipit-source-id: f15f4b177f03cea4c0fd5a60d761ee2745319d77
24 lines
491 B
C++
24 lines
491 B
C++
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "RootShadowNode.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
ComponentName RootShadowNode::getComponentName() const {
|
|
return ComponentName("RootView");
|
|
}
|
|
|
|
void RootShadowNode::layout() {
|
|
ensureUnsealed();
|
|
layout(getProps()->getLayoutContext());
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|