Skip to content

Commit b1e5c01

Browse files
fkgozalifacebook-github-bot
authored andcommitted
iOS: Added scaffolding for FabricUIManager native module
Summary: Experimental scaffolding for FabricUIManager. Reviewed By: mdvacca Differential Revision: D6908587 fbshipit-source-id: 646fcc72f54dce736378a7777e5753ed56efc2f6
1 parent 94dac23 commit b1e5c01

File tree

2 files changed

+83
-0
lines changed

2 files changed

+83
-0
lines changed

React/Fabric/RCTFabricUIManager.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
#import <UIKit/UIKit.h>
11+
12+
#import <React/RCTBridge.h>
13+
#import <React/RCTBridgeModule.h>
14+
15+
@interface RCTFabricUIManager : NSObject<RCTBridgeModule>
16+
17+
@end

React/Fabric/RCTFabricUIManager.mm

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
#import "RCTFabricUIManager.h"
11+
12+
// This file contains experimental placeholders, nothing is finalized.
13+
@implementation RCTFabricUIManager
14+
15+
@synthesize bridge = _bridge;
16+
17+
RCT_EXPORT_MODULE()
18+
19+
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, createNode:(int)reactTag
20+
viewName:(NSString *)viewName
21+
rootTag:(int)rootTag
22+
props:(NSDictionary *)props
23+
instanceHandle:(int)instanceHandleID)
24+
{
25+
return @0;
26+
}
27+
28+
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNode:(int)nodeID)
29+
{
30+
return @0;
31+
}
32+
33+
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewChildren:(int)nodeID)
34+
{
35+
return @0;
36+
}
37+
38+
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewProps:(int)nodeID newProps:(NSDictionary *)newProps)
39+
{
40+
return @0;
41+
}
42+
43+
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewChildrenAndProps:(int)nodeID newProps:(NSDictionary *)newProps)
44+
{
45+
return @0;
46+
}
47+
48+
RCT_EXPORT_METHOD(appendChild:(int)parentNodeID child:(int)childNodeID)
49+
{
50+
51+
}
52+
53+
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, createChildSet)
54+
{
55+
return @0;
56+
}
57+
58+
RCT_EXPORT_METHOD(appendChildToSet:(int)childSetID child:(int)childNodeID)
59+
{
60+
}
61+
62+
RCT_EXPORT_METHOD(completeRoot:(int)rootTag childSet:(int)childSetID)
63+
{
64+
}
65+
66+
@end

0 commit comments

Comments
 (0)