2018-04-10 16:36:47 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-04-10 16:36:47 -07:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import "RCTCreateMountItem.h"
|
|
|
|
|
|
|
|
#import "RCTComponentViewRegistry.h"
|
|
|
|
|
2018-11-25 22:15:00 -08:00
|
|
|
using namespace facebook::react;
|
|
|
|
|
2018-04-10 16:36:47 -07:00
|
|
|
@implementation RCTCreateMountItem {
|
2018-11-25 22:15:00 -08:00
|
|
|
ComponentHandle _componentHandle;
|
2018-04-10 16:36:47 -07:00
|
|
|
ReactTag _tag;
|
|
|
|
}
|
|
|
|
|
2018-11-25 22:15:00 -08:00
|
|
|
- (instancetype)initWithComponentHandle:(facebook::react::ComponentHandle)componentHandle
|
|
|
|
tag:(ReactTag)tag
|
2018-04-10 16:36:47 -07:00
|
|
|
{
|
|
|
|
if (self = [super init]) {
|
2018-11-25 22:15:00 -08:00
|
|
|
_componentHandle = componentHandle;
|
2018-04-10 16:36:47 -07:00
|
|
|
_tag = tag;
|
|
|
|
}
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)executeWithRegistry:(RCTComponentViewRegistry *)registry
|
|
|
|
{
|
2018-11-25 22:15:00 -08:00
|
|
|
[registry dequeueComponentViewWithComponentHandle:_componentHandle tag:_tag];
|
2018-04-10 16:36:47 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|