This commit is contained in:
Yamozha
2021-04-02 02:24:13 +03:00
parent c23950b545
commit 7256d79e2c
31493 changed files with 3036630 additions and 0 deletions

View File

@ -0,0 +1,14 @@
/*
* 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.
*/
namespace facebook {
namespace react {
extern const char RCTARTSurfaceViewComponentName[] = "ARTSurfaceView";
} // namespace react
} // namespace facebook

View File

@ -0,0 +1,27 @@
/*
* 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.
*/
#pragma once
#include <react/components/view/ConcreteViewShadowNode.h>
#include "RCTARTSurfaceViewProps.h"
namespace facebook {
namespace react {
extern const char RCTARTSurfaceViewComponentName[];
/*
* `ShadowNode` for <ARTSurfaceView> component.
*/
using RCTARTSurfaceShadowNode = ConcreteViewShadowNode<
RCTARTSurfaceViewComponentName,
RCTARTSurfaceViewProps,
ViewEventEmitter>;
} // namespace react
} // namespace facebook

View File

@ -0,0 +1,20 @@
/*
* 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.
*/
#pragma once
#include <react/core/ConcreteComponentDescriptor.h>
#include "RCTARTSurfaceShadowNode.h"
namespace facebook {
namespace react {
using RCTARTSurfaceComponentDescriptor =
ConcreteComponentDescriptor<RCTARTSurfaceShadowNode>;
} // namespace react
} // namespace facebook

View File

@ -0,0 +1,15 @@
/*
* 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.
*/
#import <React/RCTViewComponentView.h>
/**
* UIView class for root <ARTSurfaceView> component.
*/
@interface RCTARTSurfaceViewComponentView : RCTViewComponentView
@end

View File

@ -0,0 +1,41 @@
/*
* 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.
*/
#import "RCTARTSurfaceViewComponentView.h"
#import <react/uimanager/ComponentDescriptorProvider.h>
#import "RCTARTSurfaceViewComponentDescriptor.h"
#import "FBRCTFabricComponentsPlugins.h"
using namespace facebook::react;
@implementation RCTARTSurfaceViewComponentView {
}
- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
static const auto defaultProps = std::make_shared<const RCTARTSurfaceViewProps>();
_props = defaultProps;
}
return self;
}
#pragma mark - RCTComponentViewProtocol
+ (ComponentDescriptorProvider)componentDescriptorProvider
{
return concreteComponentDescriptorProvider<RCTARTSurfaceComponentDescriptor>();
}
@end
Class<RCTComponentViewProtocol> RCTARTSurfaceViewCls(void)
{
return RCTARTSurfaceViewComponentView.class;
}

View File

@ -0,0 +1,21 @@
/*
* 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 "RCTARTSurfaceViewProps.h"
#include <react/core/propsConversions.h>
namespace facebook {
namespace react {
RCTARTSurfaceViewProps::RCTARTSurfaceViewProps(
const RCTARTSurfaceViewProps &sourceProps,
const RawProps &rawProps)
: ViewProps(sourceProps, rawProps) {}
} // namespace react
} // namespace facebook

View File

@ -0,0 +1,26 @@
/*
* 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.
*/
#pragma once
#include <react/components/view/ViewProps.h>
namespace facebook {
namespace react {
class RCTARTSurfaceViewProps final : public ViewProps {
public:
RCTARTSurfaceViewProps() = default;
RCTARTSurfaceViewProps(
const RCTARTSurfaceViewProps &sourceProps,
const RawProps &rawProps);
#pragma mark - Props
};
} // namespace react
} // namespace facebook