mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
e028631513
Summary: Quite obvious. Reviewed By: mdvacca Differential Revision: D7857047 fbshipit-source-id: 876664b3ab5c19b7c66a38579664f18a38a1a371
40 lines
796 B
C++
40 lines
796 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 <yoga/YGStyle.h>
|
|
|
|
#include <fabric/core/Props.h>
|
|
#include <fabric/debug/DebugStringConvertible.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class YogaStylableProps;
|
|
|
|
typedef std::shared_ptr<const YogaStylableProps> SharedYogaStylableProps;
|
|
|
|
class YogaStylableProps:
|
|
public virtual DebugStringConvertible {
|
|
|
|
public:
|
|
const YGStyle &getYogaStyle() const;
|
|
|
|
void apply(const RawProps &rawProps);
|
|
|
|
#pragma mark - DebugStringConvertible
|
|
|
|
SharedDebugStringConvertibleList getDebugProps() const override;
|
|
|
|
protected:
|
|
YGStyle yogaStyle_ {};
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|