From bd359ce257a83768c54a0fbcd934d17ab4a097a8 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Thu, 19 Dec 2019 13:45:35 -0800 Subject: [PATCH] Introduce new class ShadowNodeFamilyFragment Summary: Changelog: [Internal] Reviewed By: shergin Differential Revision: D19115782 fbshipit-source-id: 9c3b069dbbf2c3d7321dfc9fbd0e54ae4e485a32 --- .../shadownode/ShadowNodeFamilyFragment.h | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ReactCommon/fabric/core/shadownode/ShadowNodeFamilyFragment.h diff --git a/ReactCommon/fabric/core/shadownode/ShadowNodeFamilyFragment.h b/ReactCommon/fabric/core/shadownode/ShadowNodeFamilyFragment.h new file mode 100644 index 00000000000..88de3a07d2b --- /dev/null +++ b/ReactCommon/fabric/core/shadownode/ShadowNodeFamilyFragment.h @@ -0,0 +1,29 @@ +/* + * 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 +#include + +namespace facebook { +namespace react { + +/* + * Note: All of the fields are `const &` references (essentially just raw + * pointers) which means that the Fragment does not copy/store them nor + * retain ownership of them. + */ +class ShadowNodeFamilyFragment final { + public: + Tag const tag; + SurfaceId const surfaceId; + EventEmitter::Shared const &eventEmitter; +}; + +} // namespace react +} // namespace facebook