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:
Родитель
53f003f233
Коммит
ddbfe24c3b
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче