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 "ABI48_0_0RCTSegmentedControlManager.h"
9
10#import "ABI48_0_0RCTBridge.h"
11#import "ABI48_0_0RCTConvert.h"
12#import "ABI48_0_0RCTSegmentedControl.h"
13
14@implementation ABI48_0_0RCTSegmentedControlManager
15
16ABI48_0_0RCT_EXPORT_MODULE()
17
18- (UIView *)view
19{
20  ABI48_0_0RCTNewArchitectureValidationPlaceholder(
21      ABI48_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 [ABI48_0_0RCTSegmentedControl new];
25}
26
27ABI48_0_0RCT_EXPORT_VIEW_PROPERTY(values, NSArray<NSString *>)
28ABI48_0_0RCT_EXPORT_VIEW_PROPERTY(selectedIndex, NSInteger)
29ABI48_0_0RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
30ABI48_0_0RCT_EXPORT_VIEW_PROPERTY(backgroundColor, UIColor)
31ABI48_0_0RCT_EXPORT_VIEW_PROPERTY(textColor, UIColor)
32ABI48_0_0RCT_EXPORT_VIEW_PROPERTY(momentary, BOOL)
33ABI48_0_0RCT_EXPORT_VIEW_PROPERTY(enabled, BOOL)
34ABI48_0_0RCT_EXPORT_VIEW_PROPERTY(onChange, ABI48_0_0RCTBubblingEventBlock)
35
36@end
37