39 lines
761 B
C++
39 lines
761 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:
|
|
Props() = default;
|
|
Props(const Props &sourceProps, const RawProps &rawProps);
|
|
|
|
const std::string nativeId;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|