mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 22:58:19 +00:00
Summary: We call this method in a constructor before the actual object is beeing constructed, so it's incorrect; it should be class method. Reviewed By: mdvacca Differential Revision: D9931315 fbshipit-source-id: 304ba8e2354f3f408cfa2bf1729266525a08f951
20 lines
611 B
Plaintext
20 lines
611 B
Plaintext
/**
|
|
* 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 "RCTFabricSurfaceHostingProxyRootView.h"
|
|
|
|
#import "RCTFabricSurface.h"
|
|
|
|
@implementation RCTFabricSurfaceHostingProxyRootView
|
|
|
|
+ (RCTSurface *)createSurfaceWithBridge:(RCTBridge *)bridge moduleName:(NSString *)moduleName initialProperties:(NSDictionary *)initialProperties
|
|
{
|
|
return (RCTSurface *)[[RCTFabricSurface alloc] initWithBridge:bridge moduleName:moduleName initialProperties:initialProperties];
|
|
}
|
|
|
|
@end
|