From 0d1b9b539740dfbe5f6ae47ce8b7cdfb23f489e8 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Wed, 16 Oct 2019 04:24:29 -0700 Subject: [PATCH] Add MaskedView to LegacyViewManagerInterop white list Summary: For components to be used with LegacyViewManagerInterop they need to be added to a white list. This makes it possible to test it out and assure proper functionality. Changelog: [Internal] Reviewed By: shergin Differential Revision: D17906107 fbshipit-source-id: 60ee99e6b973ba2d6fe804f3c99e492603d3cf8f --- .../InteropView/RCTLegacyViewManagerInteropComponentView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Fabric/Mounting/ComponentViews/InteropView/RCTLegacyViewManagerInteropComponentView.mm b/React/Fabric/Mounting/ComponentViews/InteropView/RCTLegacyViewManagerInteropComponentView.mm index 89737f37ff8..6455f47b273 100644 --- a/React/Fabric/Mounting/ComponentViews/InteropView/RCTLegacyViewManagerInteropComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/InteropView/RCTLegacyViewManagerInteropComponentView.mm @@ -39,7 +39,7 @@ using namespace facebook::react; + (BOOL)isSupported:(NSString *)componentName { static NSSet *supportedComponents = - [NSSet setWithObjects:@"Picker", @"DatePicker", @"ProgressView", @"SegmentedControl", nil]; + [NSSet setWithObjects:@"Picker", @"DatePicker", @"ProgressView", @"SegmentedControl", @"MaskedView", nil]; return [supportedComponents containsObject:componentName]; }