mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-15 11:47:38 +08:00
Summary: Trivial. Code style-only changes. Reviewed By: mdvacca Differential Revision: D15200497 fbshipit-source-id: 00b5f2e6ce7491e80e03ceb7f433571f397c2392
25 lines
684 B
C++
25 lines
684 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
|
|
|
|
#include <react/core/ShadowNode.h>
|
|
#include <react/mounting/ShadowViewMutation.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/*
|
|
* Calculates a list of view mutations which describes how the old
|
|
* `ShadowTree` can be transformed to the new one.
|
|
* The list of mutations might be and might not be optimal.
|
|
*/
|
|
ShadowViewMutationList calculateShadowViewMutations(
|
|
ShadowNode const &oldRootShadowNode,
|
|
ShadowNode const &newRootShadowNode);
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|