Add explicit componentControllerClass to CKComponent

Reviewed By: gkassabli

Differential Revision: D6675255

fbshipit-source-id: 761fea66bf8b5fb5e3d45792627afaaf2a407c97
This commit is contained in:
Antonio Corrado 2018-01-10 02:26:13 -08:00 committed by Facebook Github Bot
parent 7f58189605
commit ab972708a8
1 changed files with 6 additions and 0 deletions

View File

@ -16,10 +16,16 @@
#import <React/RCTSurface.h>
#import <React/RCTSurfaceView.h>
#import "RCTSurfaceHostingComponentController.h"
#import "RCTSurfaceHostingComponentState.h"
@implementation RCTSurfaceHostingComponent
+ (Class<CKComponentControllerProtocol>)controllerClass
{
return [RCTSurfaceHostingComponentController class];
}
+ (id)initialState
{
return [RCTSurfaceHostingComponentState new];