mirror of
https://github.com/react/react-native.git
synced 2026-10-29 01:55:18 +08:00
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
20 lines
421 B
C++
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
|