mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c8ae58880d
Summary: Migrates ARTSurfaceView to Fabric, This diff only migrates the necessary minimum for RCTVideo component to work. Other ART components are ARTNode, ARTGroup, ARTRenderable, ARTShape and ARTText. Reviewed By: mdvacca Differential Revision: D17181298 fbshipit-source-id: c2656bbcaefde25e37a9e05a64d2691bc2343b67
29 lines
655 B
Plaintext
29 lines
655 B
Plaintext
|
|
#import "RCTARTSurfaceViewComponentView.h"
|
|
#import <react/uimanager/ComponentDescriptorProvider.h>
|
|
#import "RCTARTSurfaceViewComponentDescriptor.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
|