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
This commit is contained in:
Samuel Susla 2019-10-15 03:14:12 -07:00 коммит произвёл Facebook Github Bot
Родитель 53f003f233
Коммит ddbfe24c3b
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -32,7 +32,8 @@ using namespace facebook::react;
+ (BOOL)isSupported:(NSString *)componentName
{
static NSSet<NSString *> *supportedComponents = [NSSet setWithObjects:@"Picker", @"DatePicker", @"ProgressView", nil];
static NSSet<NSString *> *supportedComponents =
[NSSet setWithObjects:@"Picker", @"DatePicker", @"ProgressView", @"SegmentedControl", nil];
return [supportedComponents containsObject:componentName];
}