Fabric: Codemod: All `<fabric/...` includes were renamed to `<react/...`

Summary: We are moving to more stable APIs removing all mentiones of the effort name from the codebase.

Reviewed By: mdvacca

Differential Revision: D12912894

fbshipit-source-id: 4a0c6b9e7454b8b14e62d419e9e9311dc0c56e7a
This commit is contained in:
Valentin Shergin 2018-11-10 14:19:08 -08:00 коммит произвёл Facebook Github Bot
Родитель 9f9390ddfc
Коммит 94d49e544d
191 изменённых файлов: 528 добавлений и 524 удалений

Просмотреть файл

@ -7,7 +7,7 @@
#import "RCTActivityIndicatorViewComponentView.h"
#import <fabric/components/activityindicator/ActivityIndicatorViewProps.h>
#import <react/components/activityindicator/ActivityIndicatorViewProps.h>
using namespace facebook::react;

Просмотреть файл

@ -7,12 +7,12 @@
#import "RCTImageComponentView.h"
#import <fabric/components/image/ImageEventEmitter.h>
#import <fabric/components/image/ImageLocalData.h>
#import <fabric/components/image/ImageProps.h>
#import <fabric/imagemanager/ImageRequest.h>
#import <fabric/imagemanager/ImageResponse.h>
#import <fabric/imagemanager/RCTImagePrimitivesConversions.h>
#import <react/components/image/ImageEventEmitter.h>
#import <react/components/image/ImageLocalData.h>
#import <react/components/image/ImageProps.h>
#import <react/imagemanager/ImageRequest.h>
#import <react/imagemanager/ImageResponse.h>
#import <react/imagemanager/RCTImagePrimitivesConversions.h>
#import "RCTConversions.h"
#import "MainQueueExecutor.h"

Просмотреть файл

@ -7,7 +7,7 @@
#import "RCTRootComponentView.h"
#import <fabric/components/root/RootProps.h>
#import <react/components/root/RootProps.h>
using namespace facebook::react;

Просмотреть файл

@ -8,10 +8,10 @@
#import "RCTScrollViewComponentView.h"
#import <React/RCTAssert.h>
#import <fabric/components/scrollview/ScrollViewLocalData.h>
#import <fabric/components/scrollview/ScrollViewProps.h>
#import <fabric/components/scrollview/ScrollViewEventEmitter.h>
#import <fabric/graphics/Geometry.h>
#import <react/components/scrollview/ScrollViewLocalData.h>
#import <react/components/scrollview/ScrollViewProps.h>
#import <react/components/scrollview/ScrollViewEventEmitter.h>
#import <react/graphics/Geometry.h>
#import "RCTConversions.h"
#import "RCTEnhancedScrollView.h"

Просмотреть файл

@ -7,8 +7,8 @@
#import "RCTSwitchComponentView.h"
#import <fabric/components/switch/SwitchEventEmitter.h>
#import <fabric/components/switch/SwitchProps.h>
#import <react/components/switch/SwitchEventEmitter.h>
#import <react/components/switch/SwitchProps.h>
using namespace facebook::react;

Просмотреть файл

@ -7,12 +7,12 @@
#import "RCTParagraphComponentView.h"
#import <fabric/components/text/ParagraphLocalData.h>
#import <fabric/components/text/ParagraphProps.h>
#import <fabric/core/LocalData.h>
#import <fabric/graphics/Geometry.h>
#import <fabric/textlayoutmanager/TextLayoutManager.h>
#import <fabric/textlayoutmanager/RCTTextLayoutManager.h>
#import <react/components/text/ParagraphLocalData.h>
#import <react/components/text/ParagraphProps.h>
#import <react/core/LocalData.h>
#import <react/graphics/Geometry.h>
#import <react/textlayoutmanager/TextLayoutManager.h>
#import <react/textlayoutmanager/RCTTextLayoutManager.h>
#import "RCTConversions.h"
using namespace facebook::react;

Просмотреть файл

@ -9,11 +9,11 @@
#import <React/RCTComponentViewProtocol.h>
#import <React/UIView+ComponentViewProtocol.h>
#import <fabric/core/LayoutMetrics.h>
#import <fabric/core/Props.h>
#import <fabric/components/view/ViewEventEmitter.h>
#import <fabric/components/view/ViewProps.h>
#import <fabric/events/EventEmitter.h>
#import <react/core/LayoutMetrics.h>
#import <react/core/Props.h>
#import <react/components/view/ViewEventEmitter.h>
#import <react/components/view/ViewProps.h>
#import <react/events/EventEmitter.h>
#import <React/RCTTouchableComponentViewProtocol.h>
NS_ASSUME_NONNULL_BEGIN

Просмотреть файл

@ -7,8 +7,8 @@
#import "RCTViewComponentView.h"
#import <fabric/components/view/ViewProps.h>
#import <fabric/components/view/ViewEventEmitter.h>
#import <react/components/view/ViewProps.h>
#import <react/components/view/ViewEventEmitter.h>
#import <objc/runtime.h>
#import <React/RCTAssert.h>
#import <React/RCTBorderDrawing.h>

Просмотреть файл

@ -9,7 +9,7 @@
#import <React/RCTMountItemProtocol.h>
#import <React/RCTPrimitives.h>
#import <fabric/events/EventEmitter.h>
#import <react/events/EventEmitter.h>
NS_ASSUME_NONNULL_BEGIN

Просмотреть файл

@ -9,7 +9,7 @@
#import <React/RCTMountItemProtocol.h>
#import <React/RCTPrimitives.h>
#import <fabric/core/LayoutMetrics.h>
#import <react/core/LayoutMetrics.h>
NS_ASSUME_NONNULL_BEGIN

Просмотреть файл

@ -9,7 +9,7 @@
#import <React/RCTMountItemProtocol.h>
#import <React/RCTPrimitives.h>
#import <fabric/core/LocalData.h>
#import <react/core/LocalData.h>
NS_ASSUME_NONNULL_BEGIN

Просмотреть файл

@ -9,7 +9,7 @@
#import <React/RCTMountItemProtocol.h>
#import <React/RCTPrimitives.h>
#import <fabric/core/Props.h>
#import <react/core/Props.h>
NS_ASSUME_NONNULL_BEGIN

Просмотреть файл

@ -7,10 +7,10 @@
#import <UIKit/UIKit.h>
#import <fabric/core/LocalData.h>
#import <fabric/core/Props.h>
#import <fabric/core/LayoutMetrics.h>
#import <fabric/events/EventEmitter.h>
#import <react/core/LocalData.h>
#import <react/core/Props.h>
#import <react/core/LayoutMetrics.h>
#import <react/events/EventEmitter.h>
#import <React/RCTPrimitives.h>
NS_ASSUME_NONNULL_BEGIN

Просмотреть файл

@ -7,8 +7,8 @@
#import <UIKit/UIKit.h>
#import <fabric/uimanager/ShadowView.h>
#import <fabric/uimanager/ShadowViewMutation.h>
#import <react/uimanager/ShadowView.h>
#import <react/uimanager/ShadowViewMutation.h>
#import <React/RCTPrimitives.h>
#import <React/RCTMountingManagerDelegate.h>

Просмотреть файл

@ -7,7 +7,7 @@
#import "RCTMountingManager.h"
#import <fabric/core/LayoutableShadowNode.h>
#import <react/core/LayoutableShadowNode.h>
#import <React/RCTAssert.h>
#import <React/RCTUtils.h>

Просмотреть файл

@ -7,10 +7,10 @@
#import <UIKit/UIKit.h>
#import <fabric/components/view/primitives.h>
#import <fabric/components/view/AccessibilityPrimitives.h>
#import <fabric/graphics/Color.h>
#import <fabric/graphics/Geometry.h>
#import <react/components/view/primitives.h>
#import <react/components/view/AccessibilityPrimitives.h>
#import <react/graphics/Color.h>
#import <react/graphics/Geometry.h>
NS_ASSUME_NONNULL_BEGIN

Просмотреть файл

@ -9,9 +9,9 @@
#import <memory>
#import <React/RCTPrimitives.h>
#import <fabric/core/LayoutConstraints.h>
#import <fabric/core/LayoutContext.h>
#import <fabric/uimanager/ShadowViewMutation.h>
#import <react/core/LayoutConstraints.h>
#import <react/core/LayoutContext.h>
#import <react/uimanager/ShadowViewMutation.h>
NS_ASSUME_NONNULL_BEGIN

Просмотреть файл

@ -7,9 +7,9 @@
#import "RCTScheduler.h"
#import <fabric/uimanager/ContextContainer.h>
#import <fabric/uimanager/Scheduler.h>
#import <fabric/uimanager/SchedulerDelegate.h>
#import <react/uimanager/ContextContainer.h>
#import <react/uimanager/Scheduler.h>
#import <react/uimanager/SchedulerDelegate.h>
#import <React/RCTFollyConvert.h>

Просмотреть файл

@ -24,10 +24,10 @@
#import <React/RCTSurfaceView.h>
#import <React/RCTSurfaceView+Internal.h>
#import <React/RCTUtils.h>
#import <fabric/core/LayoutContext.h>
#import <fabric/core/LayoutConstraints.h>
#import <fabric/imagemanager/ImageManager.h>
#import <fabric/uimanager/ContextContainer.h>
#import <react/core/LayoutContext.h>
#import <react/core/LayoutConstraints.h>
#import <react/imagemanager/ImageManager.h>
#import <react/uimanager/ContextContainer.h>
#import "MainRunLoopEventBeat.h"
#import "RuntimeEventBeat.h"

Просмотреть файл

@ -6,7 +6,7 @@
*/
#import <UIKit/UIKit.h>
#import <fabric/components/view/TouchEventEmitter.h>
#import <react/components/view/TouchEventEmitter.h>
@protocol RCTTouchableComponentViewProtocol <NSObject>
- (facebook::react::SharedTouchEventEmitter)touchEventEmitterAtPoint:(CGPoint)point;

Просмотреть файл

@ -7,8 +7,8 @@
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFRunLoop.h>
#include <fabric/uimanager/primitives.h>
#include <fabric/events/EventBeat.h>
#include <react/uimanager/primitives.h>
#include <react/events/EventBeat.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFRunLoop.h>
#include <fabric/uimanager/primitives.h>
#include <fabric/events/EventBeat.h>
#include <react/uimanager/primitives.h>
#include <react/events/EventBeat.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,7 +7,7 @@
#include "AttributedString.h"
#include <fabric/debug/DebugStringConvertibleItem.h>
#include <react/debug/DebugStringConvertibleItem.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -10,11 +10,11 @@
#include <functional>
#include <memory>
#include <fabric/attributedstring/TextAttributes.h>
#include <fabric/core/Sealable.h>
#include <fabric/core/ShadowNode.h>
#include <fabric/debug/DebugStringConvertible.h>
#include <folly/Optional.h>
#include <react/attributedstring/TextAttributes.h>
#include <react/core/Sealable.h>
#include <react/core/ShadowNode.h>
#include <react/debug/DebugStringConvertible.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -28,7 +28,7 @@ rn_xplat_cxx_library(
[
("", "*.h"),
],
prefix = "fabric/attributedstring",
prefix = "react/attributedstring",
),
compiler_flags = [
"-fexceptions",

Просмотреть файл

@ -7,9 +7,9 @@
#include "ParagraphAttributes.h"
#include <fabric/attributedstring/conversions.h>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <fabric/graphics/conversions.h>
#include <react/attributedstring/conversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
#include <react/graphics/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -9,9 +9,9 @@
#include <limits>
#include <fabric/attributedstring/primitives.h>
#include <fabric/debug/DebugStringConvertible.h>
#include <fabric/graphics/Geometry.h>
#include <react/attributedstring/primitives.h>
#include <react/debug/DebugStringConvertible.h>
#include <react/graphics/Geometry.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,11 +7,12 @@
#include "TextAttributes.h"
#include <fabric/attributedstring/conversions.h>
#include <fabric/core/conversions.h>
#include <fabric/graphics/conversions.h>
#include <react/attributedstring/conversions.h>
#include <react/core/conversions.h>
#include <react/graphics/conversions.h>
#include <cmath>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <react/debug/debugStringConvertibleUtils.h>
namespace facebook {
namespace react {
@ -24,14 +25,15 @@ void TextAttributes::apply(TextAttributes textAttributes) {
backgroundColor = textAttributes.backgroundColor
? textAttributes.backgroundColor
: backgroundColor;
opacity = !isnan(textAttributes.opacity) ? textAttributes.opacity : opacity;
opacity =
!std::isnan(textAttributes.opacity) ? textAttributes.opacity : opacity;
// Font
fontFamily = !textAttributes.fontFamily.empty() ? textAttributes.fontFamily
: fontFamily;
fontSize =
!isnan(textAttributes.fontSize) ? textAttributes.fontSize : fontSize;
fontSizeMultiplier = !isnan(textAttributes.fontSizeMultiplier)
!std::isnan(textAttributes.fontSize) ? textAttributes.fontSize : fontSize;
fontSizeMultiplier = !std::isnan(textAttributes.fontSizeMultiplier)
? textAttributes.fontSizeMultiplier
: fontSizeMultiplier;
fontWeight = textAttributes.fontWeight.hasValue() ? textAttributes.fontWeight
@ -44,12 +46,13 @@ void TextAttributes::apply(TextAttributes textAttributes) {
allowFontScaling = textAttributes.allowFontScaling.hasValue()
? textAttributes.allowFontScaling
: allowFontScaling;
letterSpacing = !isnan(textAttributes.letterSpacing)
letterSpacing = !std::isnan(textAttributes.letterSpacing)
? textAttributes.letterSpacing
: letterSpacing;
// Paragraph Styles
lineHeight = !isnan(textAttributes.lineHeight) ? textAttributes.lineHeight
lineHeight = !std::isnan(textAttributes.lineHeight)
? textAttributes.lineHeight
: lineHeight;
alignment = textAttributes.alignment.hasValue() ? textAttributes.alignment
: alignment;
@ -76,7 +79,7 @@ void TextAttributes::apply(TextAttributes textAttributes) {
textShadowOffset = textAttributes.textShadowOffset.hasValue()
? textAttributes.textShadowOffset.value()
: textShadowOffset;
textShadowRadius = !isnan(textAttributes.textShadowRadius)
textShadowRadius = !std::isnan(textAttributes.textShadowRadius)
? textAttributes.textShadowRadius
: textShadowRadius;
textShadowColor = textAttributes.textShadowColor

Просмотреть файл

@ -10,13 +10,13 @@
#include <functional>
#include <limits>
#include <fabric/attributedstring/primitives.h>
#include <fabric/core/LayoutPrimitives.h>
#include <fabric/core/ReactPrimitives.h>
#include <fabric/debug/DebugStringConvertible.h>
#include <fabric/graphics/Color.h>
#include <fabric/graphics/Geometry.h>
#include <folly/Optional.h>
#include <react/attributedstring/primitives.h>
#include <react/core/LayoutPrimitives.h>
#include <react/core/ReactPrimitives.h>
#include <react/debug/DebugStringConvertible.h>
#include <react/graphics/Color.h>
#include <react/graphics/Geometry.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,17 +7,18 @@
#pragma once
#include <fabric/attributedstring/AttributedString.h>
#include <fabric/attributedstring/ParagraphAttributes.h>
#include <fabric/attributedstring/TextAttributes.h>
#include <fabric/attributedstring/conversions.h>
#include <fabric/attributedstring/primitives.h>
#include <fabric/core/LayoutableShadowNode.h>
#include <fabric/core/ShadowNode.h>
#include <fabric/core/conversions.h>
#include <fabric/graphics/Geometry.h>
#include <fabric/graphics/conversions.h>
#include <folly/dynamic.h>
#include <react/attributedstring/AttributedString.h>
#include <react/attributedstring/ParagraphAttributes.h>
#include <react/attributedstring/TextAttributes.h>
#include <react/attributedstring/conversions.h>
#include <react/attributedstring/primitives.h>
#include <react/core/LayoutableShadowNode.h>
#include <react/core/ShadowNode.h>
#include <react/core/conversions.h>
#include <react/graphics/Geometry.h>
#include <react/graphics/conversions.h>
#include <cmath>
namespace facebook {
namespace react {
@ -395,16 +396,16 @@ inline folly::dynamic toDynamic(const TextAttributes &textAttributes) {
_textAttributes(
"backgroundColor", toDynamic(textAttributes.backgroundColor));
}
if (!isnan(textAttributes.opacity)) {
if (!std::isnan(textAttributes.opacity)) {
_textAttributes("opacity", textAttributes.opacity);
}
if (!textAttributes.fontFamily.empty()) {
_textAttributes("fontFamily", textAttributes.fontFamily);
}
if (!isnan(textAttributes.fontSize)) {
if (!std::isnan(textAttributes.fontSize)) {
_textAttributes("fontSize", textAttributes.fontSize);
}
if (!isnan(textAttributes.fontSizeMultiplier)) {
if (!std::isnan(textAttributes.fontSizeMultiplier)) {
_textAttributes("fontSizeMultiplier", textAttributes.fontSizeMultiplier);
}
if (textAttributes.fontWeight.has_value()) {
@ -419,10 +420,10 @@ inline folly::dynamic toDynamic(const TextAttributes &textAttributes) {
if (textAttributes.allowFontScaling.has_value()) {
_textAttributes("allowFontScaling", *textAttributes.allowFontScaling);
}
if (!isnan(textAttributes.letterSpacing)) {
if (!std::isnan(textAttributes.letterSpacing)) {
_textAttributes("letterSpacing", textAttributes.letterSpacing);
}
if (!isnan(textAttributes.lineHeight)) {
if (!std::isnan(textAttributes.lineHeight)) {
_textAttributes("lineHeight", textAttributes.lineHeight);
}
if (textAttributes.alignment.has_value()) {
@ -455,7 +456,7 @@ inline folly::dynamic toDynamic(const TextAttributes &textAttributes) {
// Shadow
// textShadowOffset = textAttributes.textShadowOffset.has_value() ?
// textAttributes.textShadowOffset.value() : textShadowOffset;
if (!isnan(textAttributes.textShadowRadius)) {
if (!std::isnan(textAttributes.textShadowRadius)) {
_textAttributes("textShadowRadius", textAttributes.textShadowRadius);
}
if (textAttributes.textShadowColor) {

Просмотреть файл

@ -8,11 +8,11 @@
#include <memory>
#include <assert.h>
#include <fabric/attributedstring/TextAttributes.h>
#include <fabric/attributedstring/conversions.h>
#include <fabric/attributedstring/primitives.h>
#include <fabric/graphics/conversions.h>
#include <gtest/gtest.h>
#include <react/attributedstring/TextAttributes.h>
#include <react/attributedstring/conversions.h>
#include <react/attributedstring/primitives.h>
#include <react/graphics/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -8,10 +8,10 @@
#include <memory>
#include <assert.h>
#include <fabric/attributedstring/ParagraphAttributes.h>
#include <fabric/attributedstring/conversions.h>
#include <fabric/attributedstring/primitives.h>
#include <gtest/gtest.h>
#include <react/attributedstring/ParagraphAttributes.h>
#include <react/attributedstring/conversions.h>
#include <react/attributedstring/primitives.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -8,11 +8,11 @@
#include <memory>
#include <assert.h>
#include <fabric/attributedstring/TextAttributes.h>
#include <fabric/attributedstring/conversions.h>
#include <fabric/attributedstring/primitives.h>
#include <fabric/graphics/conversions.h>
#include <gtest/gtest.h>
#include <react/attributedstring/TextAttributes.h>
#include <react/attributedstring/conversions.h>
#include <react/attributedstring/primitives.h>
#include <react/graphics/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/activityindicator/ActivityIndicatorViewShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <react/components/activityindicator/ActivityIndicatorViewShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#include <fabric/components/activityindicator/ActivityIndicatorViewProps.h>
#include <fabric/components/activityindicator/conversions.h>
#include <fabric/core/propsConversions.h>
#include <react/components/activityindicator/ActivityIndicatorViewProps.h>
#include <react/components/activityindicator/conversions.h>
#include <react/core/propsConversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#include <fabric/components/activityindicator/primitives.h>
#include <fabric/components/view/ViewProps.h>
#include <fabric/graphics/Color.h>
#include <react/components/activityindicator/primitives.h>
#include <react/components/view/ViewProps.h>
#include <react/graphics/Color.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/activityindicator/ActivityIndicatorViewProps.h>
#include <fabric/components/view/ConcreteViewShadowNode.h>
#include <react/components/activityindicator/ActivityIndicatorViewProps.h>
#include <react/components/view/ConcreteViewShadowNode.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -15,7 +15,7 @@ rn_xplat_cxx_library(
[
("", "*.h"),
],
prefix = "fabric/components/activityindicator",
prefix = "react/components/activityindicator",
),
compiler_flags = [
"-fexceptions",

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/activityindicator/primitives.h>
#include <folly/dynamic.h>
#include <react/components/activityindicator/primitives.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -25,7 +25,7 @@ rn_xplat_cxx_library(
[
("", "*.h"),
],
prefix = "fabric/components/image",
prefix = "react/components/image",
),
compiler_flags = [
"-fexceptions",

Просмотреть файл

@ -7,10 +7,10 @@
#pragma once
#include <fabric/components/image/ImageShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <fabric/imagemanager/ImageManager.h>
#include <fabric/uimanager/ContextContainer.h>
#include <react/components/image/ImageShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
#include <react/imagemanager/ImageManager.h>
#include <react/uimanager/ContextContainer.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -6,7 +6,7 @@
*/
#pragma once
#include <fabric/components/view/ViewEventEmitter.h>
#include <react/components/view/ViewEventEmitter.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#include "ImageLocalData.h"
#include <fabric/components/image/conversions.h>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <react/components/image/conversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,9 +7,9 @@
#pragma once
#include <fabric/core/LocalData.h>
#include <fabric/imagemanager/ImageRequest.h>
#include <fabric/imagemanager/primitives.h>
#include <react/core/LocalData.h>
#include <react/imagemanager/ImageRequest.h>
#include <react/imagemanager/primitives.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#include <fabric/components/image/ImageProps.h>
#include <fabric/components/image/conversions.h>
#include <fabric/core/propsConversions.h>
#include <react/components/image/ImageProps.h>
#include <react/components/image/conversions.h>
#include <react/core/propsConversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#include <fabric/components/view/ViewProps.h>
#include <fabric/graphics/Color.h>
#include <fabric/imagemanager/primitives.h>
#include <react/components/view/ViewProps.h>
#include <react/graphics/Color.h>
#include <react/imagemanager/primitives.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,9 +7,9 @@
#include <cstdlib>
#include <fabric/components/image/ImageLocalData.h>
#include <fabric/components/image/ImageShadowNode.h>
#include <fabric/core/LayoutContext.h>
#include <react/components/image/ImageLocalData.h>
#include <react/components/image/ImageShadowNode.h>
#include <react/core/LayoutContext.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,11 +7,11 @@
#pragma once
#include <fabric/components/image/ImageEventEmitter.h>
#include <fabric/components/image/ImageProps.h>
#include <fabric/components/view/ConcreteViewShadowNode.h>
#include <fabric/imagemanager/ImageManager.h>
#include <fabric/imagemanager/primitives.h>
#include <react/components/image/ImageEventEmitter.h>
#include <react/components/image/ImageProps.h>
#include <react/components/view/ConcreteViewShadowNode.h>
#include <react/imagemanager/ImageManager.h>
#include <react/imagemanager/primitives.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,9 +7,9 @@
#pragma once
#include <fabric/graphics/conversions.h>
#include <fabric/imagemanager/primitives.h>
#include <folly/dynamic.h>
#include <react/graphics/conversions.h>
#include <react/imagemanager/primitives.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -25,7 +25,7 @@ rn_xplat_cxx_library(
[
("", "*.h"),
],
prefix = "fabric/components/root",
prefix = "react/components/root",
),
compiler_flags = [
"-fexceptions",

Просмотреть файл

@ -7,8 +7,8 @@
#include "RootProps.h"
#include <fabric/components/view/YogaLayoutableShadowNode.h>
#include <fabric/components/view/conversions.h>
#include <react/components/view/YogaLayoutableShadowNode.h>
#include <react/components/view/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -9,9 +9,9 @@
#include <memory>
#include <fabric/components/view/ViewProps.h>
#include <fabric/core/LayoutConstraints.h>
#include <fabric/core/LayoutContext.h>
#include <react/components/view/ViewProps.h>
#include <react/core/LayoutConstraints.h>
#include <react/core/LayoutContext.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,7 +7,7 @@
#include "RootShadowNode.h"
#include <fabric/components/view/conversions.h>
#include <react/components/view/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -9,9 +9,9 @@
#include <memory>
#include <fabric/components/root/RootProps.h>
#include <fabric/components/view/ConcreteViewShadowNode.h>
#include <fabric/core/LayoutContext.h>
#include <react/components/root/RootProps.h>
#include <react/components/view/ConcreteViewShadowNode.h>
#include <react/core/LayoutContext.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -28,7 +28,7 @@ rn_xplat_cxx_library(
[
("", "*.h"),
],
prefix = "fabric/components/scrollview",
prefix = "react/components/scrollview",
),
compiler_flags = [
"-fexceptions",

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/scrollview/ScrollViewShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <react/components/scrollview/ScrollViewShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -8,10 +8,10 @@
#include <memory>
#include <fabric/components/view/ViewEventEmitter.h>
#include <fabric/events/EventEmitter.h>
#include <fabric/graphics/Geometry.h>
#include <folly/dynamic.h>
#include <react/components/view/ViewEventEmitter.h>
#include <react/events/EventEmitter.h>
#include <react/graphics/Geometry.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#include "ScrollViewLocalData.h"
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <fabric/graphics/conversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
#include <react/graphics/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/core/LocalData.h>
#include <fabric/graphics/Geometry.h>
#include <react/core/LocalData.h>
#include <react/graphics/Geometry.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,11 +7,11 @@
#include "ScrollViewProps.h"
#include <fabric/components/scrollview/conversions.h>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <fabric/graphics/conversions.h>
#include <react/components/scrollview/conversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
#include <react/graphics/conversions.h>
#include <fabric/core/propsConversions.h>
#include <react/core/propsConversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/scrollview/primitives.h>
#include <fabric/components/view/ViewProps.h>
#include <react/components/scrollview/primitives.h>
#include <react/components/view/ViewProps.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,7 +7,7 @@
#include "ScrollViewShadowNode.h"
#include <fabric/core/LayoutMetrics.h>
#include <react/core/LayoutMetrics.h>
#include "ScrollViewLocalData.h"

Просмотреть файл

@ -7,10 +7,10 @@
#pragma once
#include <fabric/components/scrollview/ScrollViewEventEmitter.h>
#include <fabric/components/scrollview/ScrollViewProps.h>
#include <fabric/components/view/ConcreteViewShadowNode.h>
#include <fabric/core/LayoutContext.h>
#include <react/components/scrollview/ScrollViewEventEmitter.h>
#include <react/components/scrollview/ScrollViewProps.h>
#include <react/components/view/ConcreteViewShadowNode.h>
#include <react/core/LayoutContext.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/scrollview/primitives.h>
#include <folly/dynamic.h>
#include <react/components/scrollview/primitives.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -25,7 +25,7 @@ rn_xplat_cxx_library(
[
("", "*.h"),
],
prefix = "fabric/components/switch",
prefix = "react/components/switch",
),
compiler_flags = [
"-fexceptions",

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/switch/SwitchShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <react/components/switch/SwitchShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -6,7 +6,7 @@
*/
#pragma once
#include <fabric/components/view/ViewEventEmitter.h>
#include <react/components/view/ViewEventEmitter.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#include <fabric/components/switch/SwitchProps.h>
#include <fabric/core/propsConversions.h>
#include <react/components/switch/SwitchProps.h>
#include <react/core/propsConversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/
#include <fabric/components/view/ViewProps.h>
#include <fabric/graphics/Color.h>
#include <react/components/view/ViewProps.h>
#include <react/graphics/Color.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,9 +7,9 @@
#pragma once
#include <fabric/components/switch/SwitchEventEmitter.h>
#include <fabric/components/switch/SwitchProps.h>
#include <fabric/components/view/ConcreteViewShadowNode.h>
#include <react/components/switch/SwitchEventEmitter.h>
#include <react/components/switch/SwitchProps.h>
#include <react/components/view/ConcreteViewShadowNode.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -32,7 +32,7 @@ rn_xplat_cxx_library(
("text", "*.h"),
("rawtext", "*.h"),
],
prefix = "fabric/components/text",
prefix = "react/components/text",
),
compiler_flags = [
"-fexceptions",

Просмотреть файл

@ -7,10 +7,10 @@
#include "BaseTextProps.h"
#include <fabric/attributedstring/conversions.h>
#include <fabric/core/propsConversions.h>
#include <fabric/debug/DebugStringConvertibleItem.h>
#include <fabric/graphics/conversions.h>
#include <react/attributedstring/conversions.h>
#include <react/core/propsConversions.h>
#include <react/debug/DebugStringConvertibleItem.h>
#include <react/graphics/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,10 +7,10 @@
#pragma once
#include <fabric/attributedstring/TextAttributes.h>
#include <fabric/core/Props.h>
#include <fabric/graphics/Color.h>
#include <fabric/graphics/Geometry.h>
#include <react/attributedstring/TextAttributes.h>
#include <react/core/Props.h>
#include <react/graphics/Color.h>
#include <react/graphics/Geometry.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,11 +7,11 @@
#include "BaseTextShadowNode.h"
#include <fabric/components/text/RawTextProps.h>
#include <fabric/components/text/RawTextShadowNode.h>
#include <fabric/components/text/TextProps.h>
#include <fabric/components/text/TextShadowNode.h>
#include <fabric/debug/DebugStringConvertibleItem.h>
#include <react/components/text/RawTextProps.h>
#include <react/components/text/RawTextShadowNode.h>
#include <react/components/text/TextProps.h>
#include <react/components/text/TextShadowNode.h>
#include <react/debug/DebugStringConvertibleItem.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/attributedstring/AttributedString.h>
#include <fabric/attributedstring/TextAttributes.h>
#include <react/attributedstring/AttributedString.h>
#include <react/attributedstring/TextAttributes.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,10 +7,10 @@
#pragma once
#include <fabric/components/text/ParagraphShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <fabric/textlayoutmanager/TextLayoutManager.h>
#include <fabric/uimanager/ContextContainer.h>
#include <react/components/text/ParagraphShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
#include <react/textlayoutmanager/TextLayoutManager.h>
#include <react/uimanager/ContextContainer.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#include "ParagraphLocalData.h"
#include <fabric/components/text/conversions.h>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <react/components/text/conversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,9 +7,9 @@
#pragma once
#include <fabric/attributedstring/AttributedString.h>
#include <fabric/core/LocalData.h>
#include <fabric/textlayoutmanager/TextLayoutManager.h>
#include <react/attributedstring/AttributedString.h>
#include <react/core/LocalData.h>
#include <react/textlayoutmanager/TextLayoutManager.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,9 +7,9 @@
#include "ParagraphProps.h"
#include <fabric/attributedstring/conversions.h>
#include <fabric/core/propsConversions.h>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <react/attributedstring/conversions.h>
#include <react/core/propsConversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -10,10 +10,10 @@
#include <limits>
#include <memory>
#include <fabric/attributedstring/ParagraphAttributes.h>
#include <fabric/components/text/BaseTextProps.h>
#include <fabric/components/view/ViewProps.h>
#include <fabric/core/Props.h>
#include <react/attributedstring/ParagraphAttributes.h>
#include <react/components/text/BaseTextProps.h>
#include <react/components/view/ViewProps.h>
#include <react/core/Props.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,14 +7,14 @@
#pragma once
#include <fabric/components/text/ParagraphProps.h>
#include <fabric/components/text/TextShadowNode.h>
#include <fabric/components/view/ConcreteViewShadowNode.h>
#include <fabric/core/ConcreteShadowNode.h>
#include <fabric/core/LayoutContext.h>
#include <fabric/core/ShadowNode.h>
#include <fabric/textlayoutmanager/TextLayoutManager.h>
#include <folly/Optional.h>
#include <react/components/text/ParagraphProps.h>
#include <react/components/text/TextShadowNode.h>
#include <react/components/view/ConcreteViewShadowNode.h>
#include <react/core/ConcreteShadowNode.h>
#include <react/core/LayoutContext.h>
#include <react/core/ShadowNode.h>
#include <react/textlayoutmanager/TextLayoutManager.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -3,9 +3,9 @@
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include <fabric/attributedstring/conversions.h>
#include <fabric/components/text/ParagraphLocalData.h>
#include <folly/dynamic.h>
#include <react/attributedstring/conversions.h>
#include <react/components/text/ParagraphLocalData.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/text/RawTextShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <react/components/text/RawTextShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#include "RawTextProps.h"
#include <fabric/core/propsConversions.h>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <react/core/propsConversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -9,8 +9,8 @@
#include <memory>
#include <fabric/core/Props.h>
#include <fabric/debug/DebugStringConvertible.h>
#include <react/core/Props.h>
#include <react/debug/DebugStringConvertible.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/text/RawTextProps.h>
#include <fabric/core/ConcreteShadowNode.h>
#include <react/components/text/RawTextProps.h>
#include <react/core/ConcreteShadowNode.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -8,12 +8,12 @@
#include <memory>
#include <assert.h>
#include <fabric/attributedstring/AttributedString.h>
#include <fabric/attributedstring/TextAttributes.h>
#include <fabric/attributedstring/primitives.h>
#include <fabric/components/text/ParagraphLocalData.h>
#include <fabric/components/text/conversions.h>
#include <gtest/gtest.h>
#include <react/attributedstring/AttributedString.h>
#include <react/attributedstring/TextAttributes.h>
#include <react/attributedstring/primitives.h>
#include <react/components/text/ParagraphLocalData.h>
#include <react/components/text/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/text/TextShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <react/components/text/TextShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,11 +7,11 @@
#pragma once
#include <fabric/attributedstring/TextAttributes.h>
#include <fabric/components/text/BaseTextProps.h>
#include <fabric/core/Props.h>
#include <fabric/graphics/Color.h>
#include <fabric/graphics/Geometry.h>
#include <react/attributedstring/TextAttributes.h>
#include <react/components/text/BaseTextProps.h>
#include <react/core/Props.h>
#include <react/graphics/Color.h>
#include <react/graphics/Geometry.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,10 +7,10 @@
#pragma once
#include <fabric/components/text/BaseTextShadowNode.h>
#include <fabric/components/text/TextProps.h>
#include <fabric/components/view/ViewEventEmitter.h>
#include <fabric/core/ConcreteShadowNode.h>
#include <react/components/text/BaseTextShadowNode.h>
#include <react/components/text/TextProps.h>
#include <react/components/view/ViewEventEmitter.h>
#include <react/core/ConcreteShadowNode.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -31,7 +31,7 @@ rn_xplat_cxx_library(
("root", "*.h"),
("yoga", "*.h"),
],
prefix = "fabric/components/view",
prefix = "react/components/view",
),
compiler_flags = [
"-fexceptions",

Просмотреть файл

@ -7,15 +7,15 @@
#pragma once
#include <fabric/components/view/AccessibleShadowNode.h>
#include <fabric/components/view/ViewEventEmitter.h>
#include <fabric/components/view/ViewProps.h>
#include <fabric/components/view/YogaLayoutableShadowNode.h>
#include <fabric/core/ConcreteShadowNode.h>
#include <fabric/core/LayoutableShadowNode.h>
#include <fabric/core/ShadowNode.h>
#include <fabric/core/ShadowNodeFragment.h>
#include <fabric/debug/DebugStringConvertibleItem.h>
#include <react/components/view/AccessibleShadowNode.h>
#include <react/components/view/ViewEventEmitter.h>
#include <react/components/view/ViewProps.h>
#include <react/components/view/YogaLayoutableShadowNode.h>
#include <react/core/ConcreteShadowNode.h>
#include <react/core/LayoutableShadowNode.h>
#include <react/core/ShadowNode.h>
#include <react/core/ShadowNodeFragment.h>
#include <react/debug/DebugStringConvertibleItem.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -6,9 +6,9 @@
*/
#pragma once
#include <fabric/core/LayoutMetrics.h>
#include <fabric/core/ReactPrimitives.h>
#include <fabric/events/EventEmitter.h>
#include <react/core/LayoutMetrics.h>
#include <react/core/ReactPrimitives.h>
#include <react/events/EventEmitter.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/view/ViewShadowNode.h>
#include <fabric/core/ConcreteComponentDescriptor.h>
#include <react/components/view/ViewShadowNode.h>
#include <react/core/ConcreteComponentDescriptor.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -8,8 +8,8 @@
#include <memory>
#include <fabric/core/LayoutMetrics.h>
#include <fabric/core/ReactPrimitives.h>
#include <react/core/LayoutMetrics.h>
#include <react/core/ReactPrimitives.h>
#include "TouchEventEmitter.h"
namespace facebook {

Просмотреть файл

@ -7,11 +7,11 @@
#include "ViewProps.h"
#include <fabric/components/view/conversions.h>
#include <fabric/components/view/propsConversions.h>
#include <fabric/core/propsConversions.h>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <fabric/graphics/conversions.h>
#include <react/components/view/conversions.h>
#include <react/components/view/propsConversions.h>
#include <react/core/propsConversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
#include <react/graphics/conversions.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,12 +7,12 @@
#pragma once
#include <fabric/components/view/AccessibilityProps.h>
#include <fabric/components/view/YogaStylableProps.h>
#include <fabric/components/view/primitives.h>
#include <fabric/core/Props.h>
#include <fabric/graphics/Color.h>
#include <fabric/graphics/Geometry.h>
#include <react/components/view/AccessibilityProps.h>
#include <react/components/view/YogaStylableProps.h>
#include <react/components/view/primitives.h>
#include <react/core/Props.h>
#include <react/graphics/Color.h>
#include <react/graphics/Geometry.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,8 +7,8 @@
#pragma once
#include <fabric/components/view/ConcreteViewShadowNode.h>
#include <fabric/components/view/ViewProps.h>
#include <react/components/view/ConcreteViewShadowNode.h>
#include <react/components/view/ViewProps.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,10 +7,10 @@
#include "AccessibilityProps.h"
#include <fabric/components/view/accessibilityPropsConversions.h>
#include <fabric/components/view/propsConversions.h>
#include <fabric/core/propsConversions.h>
#include <fabric/debug/debugStringConvertibleUtils.h>
#include <react/components/view/accessibilityPropsConversions.h>
#include <react/components/view/propsConversions.h>
#include <react/core/propsConversions.h>
#include <react/debug/debugStringConvertibleUtils.h>
namespace facebook {
namespace react {

Просмотреть файл

@ -7,10 +7,10 @@
#pragma once
#include <fabric/components/view/AccessibilityPrimitives.h>
#include <fabric/core/Props.h>
#include <fabric/core/ReactPrimitives.h>
#include <fabric/debug/DebugStringConvertible.h>
#include <react/components/view/AccessibilityPrimitives.h>
#include <react/core/Props.h>
#include <react/core/ReactPrimitives.h>
#include <react/debug/DebugStringConvertible.h>
namespace facebook {
namespace react {

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше