Kevin Gozali e254474d4c iOS: added fabric/core ShadowNode tests
Summary: basic tests for shadow nodes and props for fabric

Reviewed By: shergin

Differential Revision: D7377867

fbshipit-source-id: dc8e5bb369aeb32b4790fd8b56f333376bc1578c
2018-03-23 17:32:52 -07:00

43 lines
810 B
C++

/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* 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 <fabric/core/Sealable.h>
#include <fabric/core/ReactPrimitives.h>
#include <fabric/debug/DebugStringConvertible.h>
namespace facebook {
namespace react {
class Props;
using SharedProps = std::shared_ptr<const Props>;
/*
* Represents the most generic props object.
*/
class Props:
public virtual Sealable,
public virtual DebugStringConvertible {
public:
virtual ~Props() = default;
virtual void apply(const RawProps &rawProps);
const std::string &getNativeId() const;
private:
std::string nativeId_ {""};
};
} // namespace react
} // namespace facebook