[componentkit] Whitelist Native Templates

Reviewed By: tks2103

Differential Revision: D4090237

fbshipit-source-id: 63f233e
master
Ryan Rhee 8 years ago committed by Facebook Github Bot
parent a45d59e478
commit aac14999b0

@ -156,7 +156,8 @@ let component_with_unconventional_superclass_advice context decl =
ckcomponentcontroller_cl; ckcomponentcontroller_cl;
"CKCompositeComponent"; "CKCompositeComponent";
"CKStatefulViewComponent"; "CKStatefulViewComponent";
"CKStatefulViewComponentController" "CKStatefulViewComponentController";
"NTNativeTemplateComponent"
] -> true ] -> true
| _ -> false in | _ -> false in
let condition = let condition =

@ -16,3 +16,9 @@
@interface BarComponent : FooComponent // bad @interface BarComponent : FooComponent // bad
@end @end
@interface NTNativeTemplateComponent : CKCompositeComponent // fake NT
@end
@interface NativeTemplateComponent : NTNativeTemplateComponent // good
@end

@ -16,3 +16,6 @@
@implementation BarComponent @implementation BarComponent
@end @end
@implementation NativeTemplateComponent
@end

Loading…
Cancel
Save