Fabric: delete LocalData.h

Summary:
LocalData isn't used by any components. We've moved towards State.
Changelog: [internal]

Reviewed By: shergin

Differential Revision: D19250738

fbshipit-source-id: 38ab19f63e4a249748555e9181141340729b4510
This commit is contained in:
Samuel Susla authored and Facebook Github Bot committed 2020-01-20 05:48:31 -08:00
1 parent 6a128bd810
commit e5ba9f67d3
1 file changed
-41
@@ -1,41 +0,0 @@
/*
* 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 <folly/dynamic.h>
#include <react/core/Sealable.h>
#include <react/debug/DebugStringConvertible.h>
namespace facebook {
namespace react {
class LocalData;
using SharedLocalData = std::shared_ptr<const LocalData>;
/*
* Abstract class for any kind of concrete pieces of local data specific for
* some kinds of `ShadowNode`s.
* LocalData might be used to communicate some information between `ShadowNode`s
* and native component views.
* All `LocalData` objects *must* be immutable (sealed) when they became
* a part of the shadow tree.
*/
class LocalData : public Sealable, public DebugStringConvertible {
public:
using Shared = std::shared_ptr<LocalData const>;
virtual ~LocalData() = default;
virtual folly::dynamic getDynamic() const {
return folly::dynamic::object();
}
};
} // namespace react
} // namespace facebook