mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ca81037a0a
Summary: This pull request fixes a few `#include`s in the Fabric source: * Changes `<Glog/logging.h>` to `<glog/logging.h>` in two files, which was an issue for case-sensitive file systems * In `ParagraphProps.cpp`, changes the include of `attributedstring/primitives.h` from a relative style to a more absolute style. ## Changelog [Internal] [Fixed] - Fabric: Fix various includes Pull Request resolved: https://github.com/facebook/react-native/pull/27947 Test Plan: Fabric compiles perfectly, and the Fabric test suite passes. Reviewed By: shergin Differential Revision: D19788148 Pulled By: sammy-SC fbshipit-source-id: 30a297e8aea50c7c7fd5f48745edf04811a6bdbd
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
#include "ParagraphProps.h"
|
|
|
|
#include <react/attributedstring/conversions.h>
|
|
#include <react/attributedstring/primitives.h>
|
|
#include <react/core/propsConversions.h>
|
|
#include <react/debug/debugStringConvertibleUtils.h>
|
|
|
|
#include <glog/logging.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
ParagraphProps::ParagraphProps(
|
|
ParagraphProps const &sourceProps,
|
|
RawProps const &rawProps)
|
|
: ViewProps(sourceProps, rawProps),
|
|
BaseTextProps(sourceProps, rawProps),
|
|
paragraphAttributes(
|
|
convertRawProp(rawProps, sourceProps.paragraphAttributes, {})),
|
|
isSelectable(convertRawProp(
|
|
rawProps,
|
|
"selectable",
|
|
sourceProps.isSelectable,
|
|
{})){};
|
|
|
|
#pragma mark - DebugStringConvertible
|
|
|
|
#if RN_DEBUG_STRING_CONVERTIBLE
|
|
SharedDebugStringConvertibleList ParagraphProps::getDebugProps() const {
|
|
return ViewProps::getDebugProps() + BaseTextProps::getDebugProps() +
|
|
paragraphAttributes.getDebugProps() +
|
|
SharedDebugStringConvertibleList{
|
|
debugStringConvertibleItem("isSelectable", isSelectable)};
|
|
}
|
|
#endif
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|