1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#import "ABI49_0_0RCTSegmentedControlManager.h"
9
10#import "ABI49_0_0RCTBridge.h"
11#import "ABI49_0_0RCTConvert.h"
12#import "ABI49_0_0RCTSegmentedControl.h"
13
14@implementation ABI49_0_0RCTSegmentedControlManager
15
16ABI49_0_0RCT_EXPORT_MODULE()
17
18- (UIView *)view
19{
20  ABI49_0_0RCTNewArchitectureValidationPlaceholder(
21      ABI49_0_0RCTNotAllowedInFabricWithoutLegacy,
22      self,
23      @"This native component is still using the legacy interop layer -- please migrate it to use a Fabric specific implementation.");
24  return [ABI49_0_0RCTSegmentedControl new];
25}
26
27ABI49_0_0RCT_EXPORT_VIEW_PROPERTY(values, NSArray<NSString *>)
28ABI49_0_0RCT_EXPORT_VIEW_PROPERTY(selectedIndex, NSInteger)
29ABI49_0_0RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
30ABI49_0_0RCT_EXPORT_VIEW_PROPERTY(backgroundColor, UIColor)
31ABI49_0_0RCT_EXPORT_VIEW_PROPERTY(textColor, UIColor)
32ABI49_0_0RCT_EXPORT_VIEW_PROPERTY(momentary, BOOL)
33ABI49_0_0RCT_EXPORT_VIEW_PROPERTY(enabled, BOOL)
34ABI49_0_0RCT_EXPORT_VIEW_PROPERTY(onChange, ABI49_0_0RCTBubblingEventBlock)
35
36@end
37