yeet
This commit is contained in:
21
node_modules/react-native/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h
generated
vendored
Normal file
21
node_modules/react-native/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.h
generated
vendored
Normal 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.
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import <React/RCTViewComponentView.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/**
|
||||
* UIView class for root <View> component.
|
||||
*/
|
||||
@interface RCTRootComponentView : RCTViewComponentView
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
34
node_modules/react-native/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.mm
generated
vendored
Normal file
34
node_modules/react-native/React/Fabric/Mounting/ComponentViews/Root/RCTRootComponentView.mm
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* 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 "RCTRootComponentView.h"
|
||||
|
||||
#import <react/components/root/RootComponentDescriptor.h>
|
||||
#import <react/components/root/RootProps.h>
|
||||
|
||||
using namespace facebook::react;
|
||||
|
||||
@implementation RCTRootComponentView
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame
|
||||
{
|
||||
if (self = [super initWithFrame:frame]) {
|
||||
static const auto defaultProps = std::make_shared<const RootProps>();
|
||||
_props = defaultProps;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
#pragma mark - RCTComponentViewProtocol
|
||||
|
||||
+ (ComponentDescriptorProvider)componentDescriptorProvider
|
||||
{
|
||||
return concreteComponentDescriptorProvider<RootComponentDescriptor>();
|
||||
}
|
||||
|
||||
@end
|
Reference in New Issue
Block a user