From ddbfe24c3b11bf574fed19776f69bcdf2496fc09 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Tue, 15 Oct 2019 03:14:12 -0700 Subject: [PATCH] Add SegmentedControl 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: D17905453 fbshipit-source-id: 4e8e53a1898b38b2c9f01e7fc9e3527bd7004ffb --- .../InteropView/RCTLegacyViewManagerInteropComponentView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/React/Fabric/Mounting/ComponentViews/InteropView/RCTLegacyViewManagerInteropComponentView.mm b/React/Fabric/Mounting/ComponentViews/InteropView/RCTLegacyViewManagerInteropComponentView.mm index da115da84be..5a21e2a00e1 100644 --- a/React/Fabric/Mounting/ComponentViews/InteropView/RCTLegacyViewManagerInteropComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/InteropView/RCTLegacyViewManagerInteropComponentView.mm @@ -32,7 +32,8 @@ using namespace facebook::react; + (BOOL)isSupported:(NSString *)componentName { - static NSSet *supportedComponents = [NSSet setWithObjects:@"Picker", @"DatePicker", @"ProgressView", nil]; + static NSSet *supportedComponents = + [NSSet setWithObjects:@"Picker", @"DatePicker", @"ProgressView", @"SegmentedControl", nil]; return [supportedComponents containsObject:componentName]; }