Files
react-native/ReactCommon/react/renderer/mounting/ShadowTreeRevision.cpp
T
Valentin Shergin 135993b36b Fabric: Using RootShadowNode instead of ShadowNode in ShadowTreeRevision
Summary:
It's more correct and we will rely on this in the future.

Changelog: [Internal] Fabric-specific internal change.

Reviewed By: JoshuaGross

Differential Revision: D23681508

fbshipit-source-id: 5fef0ea164e8a400e6ca9a67947252b47ce6d44e
2020-09-14 15:14:50 -07:00

35 lines
835 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 "ShadowTreeRevision.h"
namespace facebook {
namespace react {
using Number = ShadowTreeRevision::Number;
ShadowTreeRevision::ShadowTreeRevision(
RootShadowNode::Shared const &rootShadowNode,
Number number,
TransactionTelemetry telemetry)
: rootShadowNode_(rootShadowNode), number_(number), telemetry_(telemetry) {}
TransactionTelemetry const &ShadowTreeRevision::getTelemetry() const {
return telemetry_;
}
RootShadowNode const &ShadowTreeRevision::getRootShadowNode() {
return *rootShadowNode_;
}
Number ShadowTreeRevision::getNumber() const {
return number_;
}
} // namespace react
} // namespace facebook