-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS: Added scaffolding for FabricUIManager native module
Summary: Experimental scaffolding for FabricUIManager. Reviewed By: mdvacca Differential Revision: D6908587 fbshipit-source-id: 646fcc72f54dce736378a7777e5753ed56efc2f6
- Loading branch information
1 parent
94dac23
commit b1e5c01
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
#import <React/RCTBridge.h> | ||
#import <React/RCTBridgeModule.h> | ||
|
||
@interface RCTFabricUIManager : NSObject<RCTBridgeModule> | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
|
||
#import "RCTFabricUIManager.h" | ||
|
||
// This file contains experimental placeholders, nothing is finalized. | ||
@implementation RCTFabricUIManager | ||
|
||
@synthesize bridge = _bridge; | ||
|
||
RCT_EXPORT_MODULE() | ||
|
||
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, createNode:(int)reactTag | ||
viewName:(NSString *)viewName | ||
rootTag:(int)rootTag | ||
props:(NSDictionary *)props | ||
instanceHandle:(int)instanceHandleID) | ||
{ | ||
return @0; | ||
} | ||
|
||
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNode:(int)nodeID) | ||
{ | ||
return @0; | ||
} | ||
|
||
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewChildren:(int)nodeID) | ||
{ | ||
return @0; | ||
} | ||
|
||
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewProps:(int)nodeID newProps:(NSDictionary *)newProps) | ||
{ | ||
return @0; | ||
} | ||
|
||
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, cloneNodeWithNewChildrenAndProps:(int)nodeID newProps:(NSDictionary *)newProps) | ||
{ | ||
return @0; | ||
} | ||
|
||
RCT_EXPORT_METHOD(appendChild:(int)parentNodeID child:(int)childNodeID) | ||
{ | ||
|
||
} | ||
|
||
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSNumber *, createChildSet) | ||
{ | ||
return @0; | ||
} | ||
|
||
RCT_EXPORT_METHOD(appendChildToSet:(int)childSetID child:(int)childNodeID) | ||
{ | ||
} | ||
|
||
RCT_EXPORT_METHOD(completeRoot:(int)rootTag childSet:(int)childSetID) | ||
{ | ||
} | ||
|
||
@end |