react-native/ReactCommon/fabric/view/root/RootShadowNode.cpp
Valentin Shergin 2bb41031ba Fabric: Introducing RootShadowNode
Summary: `RootShadowNode` is a dedicated class for managing the root node.

Reviewed By: mdvacca

Differential Revision: D7857050

fbshipit-source-id: f15f4b177f03cea4c0fd5a60d761ee2745319d77
2018-05-08 23:03:36 -07:00

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