Files
react-native/ReactCommon/fabric/core/state/StateUpdate.cpp
T
Samuel Susla 595e954b13 Use ShadowNodeFamily in state updates
Summary:
Changelog: [internal]

`ShadowNodeFamily` can be used as target in state updates instead of `ShadowNode`.

Reviewed By: shergin

Differential Revision: D19517428

fbshipit-source-id: 6831357e749239d5afec1dfd2d44a26ca6553e51
2020-02-03 06:25:26 -08:00

20 lines
421 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 "StateUpdate.h"
namespace facebook {
namespace react {
std::pair<SharedShadowNodeFamily const &, StateData::Shared> StateUpdate::
operator()() const {
return callback_();
}
} // namespace react
} // namespace facebook